using a char * as timeout value is a unique concept - atol() the string
This commit is contained in:
parent
9893a031e7
commit
2092893b1f
4
external/bsd/ntp/dist/sntp/networking.c
vendored
4
external/bsd/ntp/dist/sntp/networking.c
vendored
@ -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 @@ recv_bcst_data (
|
||||
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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user