silence more compiler warnings

And don't reuse the cp variable for two different purposes.

Signed-off-by: Serge Hallyn <shallyn@cisco.com>
This commit is contained in:
Serge Hallyn
2020-01-12 08:20:50 -06:00
parent 93f1f35123
commit ed4a0157c4
3 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -235,7 +235,7 @@ static void bad_time_notify (void)
static void check_nologin (bool login_to_root)
{
char *fname;
const char *fname;
/*
* Check to see if system is turned off for non-root users.
@@ -375,7 +375,7 @@ static void process_flags (int argc, char *const *argv)
static void init_env (void)
{
#ifndef USE_PAM
char *cp;
const char *cp;
#endif
char *tmp;