From: Danny Mayer Date: Sun, 7 Nov 2004 02:43:44 +0000 (-0500) Subject: Miscellaneous X-Git-Tag: NTP_4_2_0B_RC1~200^2^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0ff5c8cc62e6d49e5f4fee60d393e5ffe3966b66;p=thirdparty%2Fntp.git Miscellaneous bk: 418d8be0O4lAMoFFtTtrQ15WnC1yBA --- diff --git a/include/recvbuff.h b/include/recvbuff.h index 4fde7f1925..4e5ac7b575 100644 --- a/include/recvbuff.h +++ b/include/recvbuff.h @@ -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 */ diff --git a/ports/winnt/libntp/syslog.c b/ports/winnt/libntp/syslog.c index cbb28336b5..ad1ff93df5 100644 --- a/ports/winnt/libntp/syslog.c +++ b/ports/winnt/libntp/syslog.c @@ -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); } /*