Fix additional const issues.
This commit is contained in:
@@ -226,7 +226,7 @@ static const char *obscure_msg (const char *old, const char *new,
|
||||
size_t maxlen, oldlen, newlen;
|
||||
char *new1, *old1;
|
||||
const char *msg;
|
||||
char *result;
|
||||
const char *result;
|
||||
|
||||
oldlen = strlen (old);
|
||||
newlen = strlen (new);
|
||||
|
@@ -131,7 +131,7 @@ int setup_uid_gid (const struct passwd *info)
|
||||
|
||||
#if defined (HAVE_INITGROUPS) && ! defined (USE_PAM)
|
||||
if (is_console) {
|
||||
char *cp = getdef_str ("CONSOLE_GROUPS");
|
||||
const char *cp = getdef_str ("CONSOLE_GROUPS");
|
||||
|
||||
if ((NULL != cp) && (add_groups (cp) != 0)) {
|
||||
perror ("Warning: add_groups");
|
||||
|
@@ -200,7 +200,7 @@ static void read_env_file (const char *filename)
|
||||
void setup_env (struct passwd *info)
|
||||
{
|
||||
#ifndef USE_PAM
|
||||
char *envf;
|
||||
const char *envf;
|
||||
#endif
|
||||
const char *cp;
|
||||
|
||||
|
Reference in New Issue
Block a user