Fix no return statement in function returning non-void
authorJacob Welsh <jwelsh@sinenomine.net>
Wed, 30 Oct 2013 16:25:41 +0000 (12:25 -0400)
committerJacob Welsh <jwelsh@sinenomine.net>
Wed, 30 Oct 2013 16:27:12 +0000 (12:27 -0400)
At least on Apache 2 where the fix is trivial. No idea where we're
supposed to get a PID for ap_bspawn_child on Apache 1.

mod_waklog.c

index 8a9b0db..3525b3c 100644 (file)
@@ -1170,7 +1170,15 @@ token_cleanup (void *data)
   return 0;
 }
 
+/* This function doesn't return anything but is passed to ap_bspawn_child on
+ * Apache 1 which expects it to return a pid as an int. For want of better
+ * understanding, err on the side of not changing Apache 1 code while fixing
+ * the compile warning on Apache 2. */
+#ifdef APACHE2
+static void
+#else
 static int
+#endif
 waklog_child_routine (void *data, child_info * pinfo)
 {
   int i;