]> andersk Git - moira.git/blobdiff - lib/critical.c
posixify source
[moira.git] / lib / critical.c
index c0af33bf1f294564c6e836c7e1887b2226ecf4ee..7d5df7f1f18b0448a0502cc467ebe64aef00adcb 100644 (file)
@@ -18,6 +18,7 @@
 #ifdef SYSLOG
 #include <syslog.h>
 #endif
+#include <string.h>
 
 
 /* mode to create the file with */
@@ -79,7 +80,11 @@ char *msg;
 #ifdef ZEPHYR
     ZNotice_t znotice;
 
+#ifdef POSIX
+    memset (&znotice, 0, sizeof (znotice));
+#else
     bzero (&znotice, sizeof (znotice));
+#endif
     znotice.z_kind = UNSAFE;
     znotice.z_class = "MOIRA";
     znotice.z_class_inst = inst;
This page took 0.07396 seconds and 4 git commands to generate.