File pwauth-2.3.10_makeitbuild.patch of Package pwauth

--- main.c	2009-06-11 15:47:10.000000000 +0200
+++ main.c	2012-09-20 23:48:09.975401940 +0200
@@ -44,13 +44,13 @@
 #endif
 
 
-main(int argc, char **argv)
+int main(int argc, char **argv)
 {
 #ifdef ENV_METHOD
     char *login, *passwd;
 #else
     char login[BFSZ+1], passwd[BFSZ+1];
-    char *c, *strchr();
+    char *c; /* *strchr(); */
 #endif
     int uid,i;
     int status;
--- nologin.c	2009-04-04 06:45:56.000000000 +0200
+++ nologin.c	2012-09-20 23:48:09.985401929 +0200
@@ -38,7 +38,7 @@
  * uid is below MIN_NOLOGIN_UID.
  */
 
-check_nologin()
+int check_nologin()
 {
     /* Return true if the file does not exist (the access() function returns
      * true if the file doesn't exist - pretty dumb, eh?) */
--- pwauth.h	2009-04-04 06:45:56.000000000 +0200
+++ pwauth.h	2012-09-20 23:48:09.985401929 +0200
@@ -37,6 +37,7 @@
 #include <string.h>
 #include <fcntl.h>
 #include <errno.h>
+#include <time.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/time.h>
@@ -127,3 +128,9 @@
 #ifndef BFSZ
 # define BFSZ 1024
 #endif
+
+/* prototypes for the internal functions */
+int check_auth(char *login, char *passwd);
+int check_nologin();
+void lastlog();
+void snooze(int seconds);
--- snooze.c	2011-10-05 15:18:44.000000000 +0200
+++ snooze.c	2012-09-20 23:48:09.984401940 +0200
@@ -42,7 +42,7 @@
  * sleep time, if other pwauth processes are in sleeps.
  */
 
-snooze(int seconds)
+void snooze(int seconds)
 {
     int slfd;
     struct flock lock;
openSUSE Build Service is sponsored by