* 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

@@ -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 */