]> granicus.if.org Git - apache/commitdiff
If uid_t and gid_t are unsigned on a platform (hurd, for example), using -1
authorColm MacCarthaigh <colm@apache.org>
Tue, 30 Aug 2005 14:28:48 +0000 (14:28 +0000)
committerColm MacCarthaigh <colm@apache.org>
Tue, 30 Aug 2005 14:28:48 +0000 (14:28 +0000)
may cause a compiler warning.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@264788 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_cgid.c

index e3dd4caa81970d2496e195cd8272e982024f1be1..2c2368b9e797cbc8634b53260330541f7215cf73 100644 (file)
@@ -91,7 +91,7 @@ static server_rec *root_server = NULL;
 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);