* ksutil.c [HAVE_DOSISH_SYSTEM]: Fix warnings on mingw32. Noted by Joe
authorDavid Shaw <dshaw@jabberwocky.com>
Wed, 1 Jun 2005 19:08:56 +0000 (19:08 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Wed, 1 Jun 2005 19:08:56 +0000 (19:08 +0000)
Vender.

keyserver/ChangeLog
keyserver/ksutil.c

index 4738f70..abeecb6 100644 (file)
@@ -1,3 +1,8 @@
+2005-06-01  David Shaw  <dshaw@jabberwocky.com>
+
+       * ksutil.c [HAVE_DOSISH_SYSTEM]: Fix warnings on mingw32.  Noted
+       by Joe Vender.
+
 2005-05-04  David Shaw  <dshaw@jabberwocky.com>
 
        * ksutil.h, ksutil.c: #ifdef so we can build without libcurl or
index 365cbdd..0e14e2e 100644 (file)
 #include "keyserver.h"
 #include "ksutil.h"
 
+#ifdef HAVE_DOSISH_SYSTEM
+
+unsigned int set_timeout(unsigned int seconds) {return 0;}
+int register_timeout(void) {return 0;}
+
+#else
+
 static void
 catch_alarm(int foo)
 {
@@ -45,19 +52,12 @@ catch_alarm(int foo)
 unsigned int
 set_timeout(unsigned int seconds)
 {
-#ifdef HAVE_DOSISH_SYSTEM
-  return 0;
-#else
   return alarm(seconds);
-#endif
 }
 
 int
 register_timeout(void)
 {
-#ifdef HAVE_DOSISH_SYSTEM
-  return 0;
-#else
 #if defined(HAVE_SIGACTION) && defined(HAVE_STRUCT_SIGACTION)
   struct sigaction act;
 
@@ -71,9 +71,10 @@ register_timeout(void)
   else
     return 0;
 #endif
-#endif
 }
 
+#endif /* !HAVE_DOSISH_SYSTEM */
+
 struct ks_options *
 init_ks_options(void)
 {