httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r264788 - /httpd/httpd/trunk/modules/generators/mod_cgid.c
Date Tue, 30 Aug 2005 14:28:51 GMT
Author: colm
Date: Tue Aug 30 07:28:48 2005
New Revision: 264788

URL: http://svn.apache.org/viewcvs?rev=264788&view=rev
Log:

If uid_t and gid_t are unsigned on a platform (hurd, for example), using -1
may cause a compiler warning. 


Modified:
    httpd/httpd/trunk/modules/generators/mod_cgid.c

Modified: httpd/httpd/trunk/modules/generators/mod_cgid.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/generators/mod_cgid.c?rev=264788&r1=264787&r2=264788&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/generators/mod_cgid.c (original)
+++ httpd/httpd/trunk/modules/generators/mod_cgid.c Tue Aug 30 07:28:48 2005
@@ -91,7 +91,7 @@
 static apr_pool_t *root_pool = NULL;
 static const char *sockname;
 static pid_t parent_pid;
-static ap_unix_identity_t empty_ugid = { -1, -1, -1 };
+static ap_unix_identity_t empty_ugid = { (uid_t)-1, (gid_t)-1, -1 };
 
 /* Read and discard the data in the brigade produced by a CGI script */
 static void discard_script_output(apr_bucket_brigade *bb);



Mime
View raw message