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>
+
+ * 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
}
}
+#else /* !USE_PAM */
+extern int errno; /* warning: ANSI C forbids an empty source file */
#endif /* !USE_PAM */
return 1;
}
+#else /* !USE_PAM */
+extern int errno; /* warning: ANSI C forbids an empty source file */
#endif /* !USE_PAM */
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
return (NO);
}
+#else /* !USE_PAM */
+extern int errno; /* warning: ANSI C forbids an empty source file */
#endif /* !USE_PAM */