]> code.citadel.org Git - citadel.git/blobdiff - citadel/control.c
* added RCS Id keyword strings to sources
[citadel.git] / citadel / control.c
index 4aa5baf7736155fe646635421dd5e203c6bfa1f9..540863412d6d9d36b08372d5054f6cdb964c9dc5 100644 (file)
@@ -3,6 +3,8 @@
  *
  * This module handles states which are global to the entire server.
  *
+ * $Id$
+ *
  */
 
 #include <stdlib.h>
@@ -18,7 +20,8 @@
 #include <syslog.h>
 #include "citadel.h"
 #include "server.h"
-#include "proto.h"
+#include "control.h"
+#include "sysdep_decls.h"
 
 struct CitControl CitControl;
 
@@ -32,7 +35,7 @@ void get_control(void) {
         * the system functions with all control record fields initialized
         * to zero.
         */
-       bzero(&CitControl, sizeof(struct CitControl));
+       memset(&CitControl, 0, sizeof(struct CitControl));
        fp = fopen("citadel.control", "rb");
        if (fp == NULL) return;