From cvs-return-4487-apmail-apr-cvs-archive=apr.apache.org@apr.apache.org Sun Dec 15 02:00:24 2002 Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 49979 invoked by uid 500); 15 Dec 2002 02:00:23 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 49968 invoked from network); 15 Dec 2002 02:00:23 -0000 Date: 15 Dec 2002 02:00:22 -0000 Message-ID: <20021215020022.71677.qmail@icarus.apache.org> From: rbb@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr/file_io/unix dir.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N rbb 2002/12/14 18:00:22 Modified: file_io/unix dir.c Log: Fix a compile break on Solaris, and a warning on Linux. If the function isn't used, it shouldn't be declared. This should probably also be static, but I haven't digested it yet. Revision Changes Path 1.67 +2 -1 apr/file_io/unix/dir.c Index: dir.c =================================================================== RCS file: /home/cvs/apr/file_io/unix/dir.c,v retrieving revision 1.66 retrieving revision 1.67 diff -u -r1.66 -r1.67 --- dir.c 15 Dec 2002 00:15:06 -0000 1.66 +++ dir.c 15 Dec 2002 02:00:22 -0000 1.67 @@ -140,6 +140,7 @@ return apr_pool_cleanup_run(thedir->pool, thedir, dir_cleanup); } +#ifdef DIRENT_TYPE apr_filetype_e apr_filetype_from_dirent_type(int type) { switch (type) { @@ -165,7 +166,7 @@ return APR_UNKFILE; } } - +#endif apr_status_t apr_dir_read(apr_finfo_t *finfo, apr_int32_t wanted, apr_dir_t *thedir)