From: Jeff Trawick Date: Sun, 18 Jun 2000 03:05:41 +0000 (+0000) Subject: Make unixd_config.user_name const char * instead of char * to avoid X-Git-Tag: APACHE_2_0_ALPHA_5~309 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43befa39e110582aa8fef0c31d20f40862de915c;p=apache Make unixd_config.user_name const char * instead of char * to avoid a warning when the set-user-name command handler saves the address of the arg from the config file. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85606 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/os/unix/unixd.c b/os/unix/unixd.c index 4259772df5..8da6ee7ed0 100644 --- a/os/unix/unixd.c +++ b/os/unix/unixd.c @@ -159,7 +159,7 @@ void unixd_detach(void) static int set_group_privs(void) { if (!geteuid()) { - char *name; + const char *name; /* Get username if passed as a uid */ diff --git a/os/unix/unixd.h b/os/unix/unixd.h index 2a1cee0227..0b9ee5522a 100644 --- a/os/unix/unixd.h +++ b/os/unix/unixd.h @@ -77,7 +77,7 @@ #endif typedef struct { - char *user_name; + const char *user_name; uid_t user_id; gid_t group_id; } unixd_config_rec;