chiark / gitweb /
Import release 0.07
[secnet.git] / secnet.c
index 0df6e0919c9befd5353acda7a12b133d61d86ee2..b1599e1087bf8e7b36460282dbcb356415b47c83 100644 (file)
--- a/secnet.c
+++ b/secnet.c
@@ -4,13 +4,14 @@
  *
  */
 
-static char *version="secnet version " VERSION " $Date: 1996/03/13 22:27:41 $";
+extern char version[];
 
 #include <stdio.h>
 #include <string.h>
 #include <getopt.h>
 #include <stdarg.h>
 #include <errno.h>
+#include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/poll.h>
 #include <sys/time.h>
@@ -18,12 +19,10 @@ static char *version="secnet version " VERSION " $Date: 1996/03/13 22:27:41 $";
 #include <arpa/inet.h>
 #include <adns.h>
 #include <pwd.h>
-#include <sys/types.h>
 
 #include "secnet.h"
 #include "util.h"
 #include "conffile.h"
-#include "modules.h"
 
 /* Command-line options (possibly config-file options too) */
 static char *configfile="/etc/secnet/secnet.conf";
@@ -156,7 +155,7 @@ static void setup(dict_t *config)
        fatal("configuration does not include a system/log facility\n");
     }
     log=init_log(l);
-    log->log(log->st,LOG_DEBUG,"setup: logging started");
+    log->log(log->st,LOG_DEBUG,"%s: logging started",version);
 
     /* Who are we supposed to run as? */
     userid=dict_read_string(system,"userid",False,"system",loc);