From 4e668fdd5b5da0d46f97d835249dbe5f0ea319a7 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 19 Oct 2017 15:16:25 -0700 Subject: fixes #84 Consider using msec for durations There is now a public nng_duration type. We have also updated the zerotier work to work with the signed int64_t's that the latst ZeroTier dev branch is using. --- src/transport/tcp/tcp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/transport/tcp') diff --git a/src/transport/tcp/tcp.c b/src/transport/tcp/tcp.c index 2e0b023a..5ed90ca4 100644 --- a/src/transport/tcp/tcp.c +++ b/src/transport/tcp/tcp.c @@ -800,16 +800,16 @@ nni_tcp_ep_setopt_linger(void *arg, const void *v, size_t sz) { nni_tcp_ep *ep = arg; if (ep == NULL) { - return (nni_chkopt_usec(v, sz)); + return (nni_chkopt_ms(v, sz)); } - return (nni_setopt_usec(&ep->linger, v, sz)); + return (nni_setopt_ms(&ep->linger, v, sz)); } static int nni_tcp_ep_getopt_linger(void *arg, void *v, size_t *szp) { nni_tcp_ep *ep = arg; - return (nni_getopt_usec(ep->linger, v, szp)); + return (nni_getopt_ms(ep->linger, v, szp)); } static nni_tran_pipe_option nni_tcp_pipe_options[] = { -- cgit v1.2.3-70-g09d2