diff options
author | Jeff Trawick <trawick@apache.org> | 2000-06-18 03:05:41 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2000-06-18 03:05:41 +0000 |
commit | 43befa39e110582aa8fef0c31d20f40862de915c (patch) | |
tree | d1321fe940b07e1b2174659e2bc228d9a3be9f12 /os | |
parent | 132dc4e8fb673fb7c79a1ed4235403f676a7ea4d (diff) | |
download | httpd-43befa39e110582aa8fef0c31d20f40862de915c.tar.gz |
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
Diffstat (limited to 'os')
-rw-r--r-- | os/unix/unixd.c | 2 | ||||
-rw-r--r-- | os/unix/unixd.h | 2 |
2 files changed, 2 insertions, 2 deletions
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; |