Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/ntp/dist/sntp using a char * as timeout value i...
details: https://anonhg.NetBSD.org/src/rev/d37b3747e9ea
branches: trunk
changeset: 757429:d37b3747e9ea
user: kardel <kardel%NetBSD.org@localhost>
date: Sat Aug 28 20:54:24 2010 +0000
description:
using a char * as timeout value is a unique concept - atol() the string
diffstat:
external/bsd/ntp/dist/sntp/networking.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 99261c2b9be2 -r d37b3747e9ea external/bsd/ntp/dist/sntp/networking.c
--- a/external/bsd/ntp/dist/sntp/networking.c Sat Aug 28 20:52:55 2010 +0000
+++ b/external/bsd/ntp/dist/sntp/networking.c Sat Aug 28 20:54:24 2010 +0000
@@ -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 */
Home |
Main Index |
Thread Index |
Old Index