* libmisc/limits.c, libmisc/obscure.c, src/login_nopam.c,

lib/pwauth.c: Avoid empty file when USE_PAM is set.
* src/login_nopam.c: Fix warnings: resolve_hostname takes and
  returns a constant string.
This commit is contained in:
nekral-guest 2008-01-01 14:18:55 +00:00
parent 0dccafcd23
commit bca732693b
4 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/limits.c, libmisc/obscure.c, src/login_nopam.c,
lib/pwauth.c: Avoid empty file when USE_PAM is set.
* src/login_nopam.c: Fix warnings: resolve_hostname takes and
returns a constant string.
2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
* src/grpck.c: Split process_flags(), open_files(), and

View File

@ -441,4 +441,6 @@ void setup_limits (const struct passwd *info)
}
}
#else /* !USE_PAM */
extern int errno; /* warning: ANSI C forbids an empty source file */
#endif /* !USE_PAM */

View File

@ -289,4 +289,6 @@ int obscure (const char *old, const char *new, const struct passwd *pwdp)
return 1;
}
#else /* !USE_PAM */
extern int errno; /* warning: ANSI C forbids an empty source file */
#endif /* !USE_PAM */

View File

@ -245,8 +245,8 @@ static int user_match (const char *tok, const char *string)
return (NO);
}
static char *resolve_hostname (string)
char *string;
static const char *resolve_hostname (string)
const char *string;
{
/*
* Resolve hostname to numeric IP address, as suggested
@ -314,4 +314,6 @@ static int string_match (const char *tok, const char *string)
return (NO);
}
#else /* !USE_PAM */
extern int errno; /* warning: ANSI C forbids an empty source file */
#endif /* !USE_PAM */