* src/sulogin.c: Fix a const issue.
This commit is contained in:
parent
7bb81f6c3e
commit
7e398a169b
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
* src/passwd.c: Fix a const issue.
|
* src/passwd.c: Fix a const issue.
|
||||||
* src/passwd.c: Avoid multi-statements lines.
|
* src/passwd.c: Avoid multi-statements lines.
|
||||||
|
* src/sulogin.c: Fix a const issue.
|
||||||
|
|
||||||
2010-08-21 Nicolas François <nicolas.francois@centraliens.net>
|
2010-08-21 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ static RETSIGTYPE catch_signals (unused int sig)
|
|||||||
|
|
||||||
/*ARGSUSED*/ int main (int argc, char **argv)
|
/*ARGSUSED*/ int main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
char *cp;
|
const char *env;
|
||||||
char **envp = environ;
|
char **envp = environ;
|
||||||
TERMIO termio;
|
TERMIO termio;
|
||||||
int err = 0;
|
int err = 0;
|
||||||
@ -162,13 +162,13 @@ static RETSIGTYPE catch_signals (unused int sig)
|
|||||||
|
|
||||||
#ifndef USE_PAM
|
#ifndef USE_PAM
|
||||||
|
|
||||||
cp = getdef_str ("ENV_TZ");
|
env = getdef_str ("ENV_TZ");
|
||||||
if (NULL != cp) {
|
if (NULL != env) {
|
||||||
addenv (('/' == *cp) ? tz (cp) : cp, NULL);
|
addenv (('/' == *env) ? tz (env) : env, NULL);
|
||||||
}
|
}
|
||||||
cp = getdef_str ("ENV_HZ");
|
env = getdef_str ("ENV_HZ");
|
||||||
if (NULL != cp) {
|
if (NULL != env) {
|
||||||
addenv (cp, NULL); /* set the default $HZ, if one */
|
addenv (env, NULL); /* set the default $HZ, if one */
|
||||||
}
|
}
|
||||||
#endif /* !USE_PAM */
|
#endif /* !USE_PAM */
|
||||||
|
|
||||||
@ -178,6 +178,7 @@ static RETSIGTYPE catch_signals (unused int sig)
|
|||||||
(void) alarm (ALARM); /* only wait so long ... */
|
(void) alarm (ALARM); /* only wait so long ... */
|
||||||
|
|
||||||
while (true) { /* repeatedly get login/password pairs */
|
while (true) { /* repeatedly get login/password pairs */
|
||||||
|
char *cp;
|
||||||
pw_entry (name, &pwent); /* get entry from password file */
|
pw_entry (name, &pwent); /* get entry from password file */
|
||||||
if (pwent.pw_name == (char *) 0) {
|
if (pwent.pw_name == (char *) 0) {
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user