Module Name: src
Committed By: kardel
Date: Sat Aug 28 20:54:24 UTC 2010
Modified Files:
src/external/bsd/ntp/dist/sntp: networking.c
Log Message:
using a char * as timeout value is a unique concept - atol() the string
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/bsd/ntp/dist/sntp/networking.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/ntp/dist/sntp/networking.c
diff -u src/external/bsd/ntp/dist/sntp/networking.c:1.2 src/external/bsd/ntp/dist/sntp/networking.c:1.3
--- src/external/bsd/ntp/dist/sntp/networking.c:1.2 Sat Aug 28 15:39:25 2010
+++ src/external/bsd/ntp/dist/sntp/networking.c Sat Aug 28 20:54:24 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: networking.c,v 1.2 2010/08/28 15:39:25 kardel Exp $ */
+/* $NetBSD: networking.c,v 1.3 2010/08/28 20:54:24 kardel Exp $ */
#include "networking.h"
@@ -280,7 +280,7 @@
FD_SET(rsock, &bcst_fd);
if(ENABLED_OPT(TIMEOUT))
- timeout_tv.tv_sec = (int) OPT_ARG(TIMEOUT);
+ timeout_tv.tv_sec = atol(OPT_ARG(TIMEOUT));
else
timeout_tv.tv_sec = 68; /* ntpd broadcasts every 64s */