From 43befa39e110582aa8fef0c31d20f40862de915c Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Sun, 18 Jun 2000 03:05:41 +0000 Subject: [PATCH] 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 --- os/unix/unixd.c | 2 +- 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; -- 2.50.1