File pidentd-3.1a25-warnings-fix.diff of Package pidentd

--- plib/server.c
+++ plib/server.c
@@ -172,6 +172,7 @@
 	s_close(sp->fd);
 
     a_free(sp);
+    return 1;
 }
 
 static RETSIGTYPE
--- plib/timeout.c
+++ plib/timeout.c
@@ -58,7 +58,7 @@
     
     pthread_mutex_lock(&tcb->mtx);
     
-    while (tp = tcb->top)
+    while ((tp = tcb->top))
     {
 	time(&now);
 
@@ -100,7 +100,6 @@
 void
 timeout_init(void)
 {
-    int ecode;
 
     if (debug)
 	fprintf(stderr, "timeout_init(): Called\n");
@@ -151,7 +150,7 @@
 	      int timeout)
 {
     TIMEOUT **prev, *cur;
-    TIMEOUT *new_top, *old_top;
+    TIMEOUT *old_top;
     int code;
openSUSE Build Service is sponsored by