httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r604380 - /httpd/mod_ftp/trunk/modules/ftp/ftp_limitlogin.c
Date Sat, 15 Dec 2007 03:09:03 GMT
Author: wrowe
Date: Fri Dec 14 19:09:03 2007
New Revision: 604380

URL: http://svn.apache.org/viewvc?rev=604380&view=rev
Log:
Truly quiet gcc.  But man, is it easily fooled into ignoring the
"declared with attribute warn_unused_result" failure.  Any
optimizing compiler knows these are unused :)

Modified:
    httpd/mod_ftp/trunk/modules/ftp/ftp_limitlogin.c

Modified: httpd/mod_ftp/trunk/modules/ftp/ftp_limitlogin.c
URL: http://svn.apache.org/viewvc/httpd/mod_ftp/trunk/modules/ftp/ftp_limitlogin.c?rev=604380&r1=604379&r2=604380&view=diff
==============================================================================
--- httpd/mod_ftp/trunk/modules/ftp/ftp_limitlogin.c (original)
+++ httpd/mod_ftp/trunk/modules/ftp/ftp_limitlogin.c Fri Dec 14 19:09:03 2007
@@ -87,14 +87,15 @@
     apr_dbm_close(dbf);
 #if !defined(OS2) && !defined(WIN32) && !defined(BEOS) && !defined(NETWARE)
     if (geteuid() == 0) {
-        (void)chown(fsc->limitdbfile, unixd_config.user_id, -1);
-        (void)chown(apr_pstrcat(p, fsc->limitdbfile, ".LoCK", NULL),
+        int ign;
+        ign = chown(fsc->limitdbfile, unixd_config.user_id, -1);
+        ign = chown(apr_pstrcat(p, fsc->limitdbfile, ".LoCK", NULL),
                     unixd_config.user_id, -1);
-        (void)chown(apr_pstrcat(p, fsc->limitdbfile, ".db", NULL),
+        ign = chown(apr_pstrcat(p, fsc->limitdbfile, ".db", NULL),
                     unixd_config.user_id, -1);
-        (void)chown(apr_pstrcat(p, fsc->limitdbfile, ".dir", NULL),
+        ign = chown(apr_pstrcat(p, fsc->limitdbfile, ".dir", NULL),
                     unixd_config.user_id, -1);
-        (void)chown(apr_pstrcat(p, fsc->limitdbfile, ".pag", NULL),
+        ign = chown(apr_pstrcat(p, fsc->limitdbfile, ".pag", NULL),
                     unixd_config.user_id, -1);
     }
 #endif



Mime
View raw message