Modified function heads & prototypes.
[yaz-moved-to-github.git] / server / statserv.c
index d99916b..aa68bc1 100644 (file)
@@ -4,7 +4,13 @@
  * Sebastian Hammer, Adam Dickmeiss
  *
  * $Log: statserv.c,v $
- * Revision 1.25  1995-08-29 11:18:02  quinn
+ * Revision 1.27  1995-09-27 15:03:02  quinn
+ * Modified function heads & prototypes.
+ *
+ * Revision 1.26  1995/08/29  14:44:51  quinn
+ * Reset timeouts.
+ *
+ * Revision 1.25  1995/08/29  11:18:02  quinn
  * Added code to receive close
  *
  * Revision 1.24  1995/06/16  10:31:39  quinn
@@ -122,7 +128,7 @@ static statserv_options_block control_block = {
     "",                         /* diagnostic output to stderr */
     "tcp:@:9999",               /* default listener port */
     PROTO_Z3950,                /* default application protocol */
-    1, /*2*60,*/                       /* idle timeout (minutes) */
+    2*60,                       /* idle timeout (minutes) */
     1024*1024,                  /* maximum PDU size (approx.) to allow */
     "default-config",           /* configuration name to pass to backend */
     ""                          /* set user id */
@@ -328,7 +334,7 @@ static void catchchld(int num)
     signal(SIGCHLD, catchchld);
 }
 
-statserv_options_block *statserv_getcontrol(void)
+statserv_options_block MDF *statserv_getcontrol(void)
 {
     static statserv_options_block cb;
 
@@ -336,12 +342,12 @@ statserv_options_block *statserv_getcontrol(void)
     return &cb;
 }
 
-void statserv_setcontrol(statserv_options_block *block)
+void MDF statserv_setcontrol(statserv_options_block *block)
 {
     memcpy(&control_block, block, sizeof(*block));
 }
 
-int statserv_main(int argc, char **argv)
+int MDF statserv_main(int argc, char **argv)
 {
     int ret, listeners = 0;
     char *arg;