From: Colm MacCarthaigh Date: Tue, 30 Aug 2005 14:28:48 +0000 (+0000) Subject: If uid_t and gid_t are unsigned on a platform (hurd, for example), using -1 X-Git-Tag: 2.3.0~3041 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19a0d050b0c3ada98885cf83f9b8754a106e7beb;p=apache If uid_t and gid_t are unsigned on a platform (hurd, for example), using -1 may cause a compiler warning. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@264788 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_cgid.c b/modules/generators/mod_cgid.c index e3dd4caa81..2c2368b9e7 100644 --- a/modules/generators/mod_cgid.c +++ b/modules/generators/mod_cgid.c @@ -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);