]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Miscellaneous
authorDanny Mayer <mayer@ntp.org>
Sun, 7 Nov 2004 02:43:44 +0000 (21:43 -0500)
committerDanny Mayer <mayer@ntp.org>
Sun, 7 Nov 2004 02:43:44 +0000 (21:43 -0500)
bk: 418d8be0O4lAMoFFtTtrQ15WnC1yBA

include/recvbuff.h
ports/winnt/libntp/syslog.c

index 4fde7f19250a81ed56984ee61b8e79e7da1358ac..4e5ac7b575f075d0e90402339527ef659b4409b3 100644 (file)
@@ -64,6 +64,7 @@ struct recvbuf {
 #endif
        struct interface *dstadr;       /* interface datagram arrived thru */
        SOCKET  fd;                     /* fd on which it was received */
+       int msg_flags;                  /* Flags received about the packet */
        l_fp recv_time;                 /* time of arrival */
        void (*receiver) P((struct recvbuf *)); /* routine to receive buffer */
        int recv_length;                /* number of octets received */
index cbb28336b5c556678a1d09241af987b580bf2c60..ad1ff93df5148144f7a2aead5781eff76045de94 100644 (file)
@@ -30,7 +30,7 @@
 static HANDLE hAppLog = NULL;
 static FILE *log_stream;
 static int debug_level = 0;
-static char *progname = "NTP";
+static char progname[51] = "NTP";
 static int logmask = 0;
 
 static struct dsn_c_pvt_sfnt {
@@ -131,6 +131,7 @@ void
 openlog(const char *name, int flags, ...) {
        /* Get a handle to the Application event log */
        hAppLog = RegisterEventSource(NULL, progname);
+       strcpy(progname, name);
 }
 
 /*