From 79ac20c161ea1eb323fe99220ed90a6cb7ece49d Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Fri, 6 Jun 2014 10:13:25 +0200 Subject: [PATCH] client: fix printing of negative poll in sources report --- candm.h | 2 +- client.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/candm.h b/candm.h index 7e94caa..f3eb433 100644 --- a/candm.h +++ b/candm.h @@ -518,7 +518,7 @@ typedef struct { typedef struct { IPAddr ip_addr; - uint16_t poll; + int16_t poll; uint16_t stratum; uint16_t state; uint16_t mode; diff --git a/client.c b/client.c index deb7ead..303fe4a 100644 --- a/client.c +++ b/client.c @@ -1733,8 +1733,8 @@ process_cmd_sources(char *line) double orig_latest_meas, latest_meas, latest_meas_err; IPAddr ip_addr; uint32_t latest_meas_ago; - uint16_t poll, stratum; - uint16_t state, mode, flags, reachability; + int16_t poll; + uint16_t stratum, state, mode, flags, reachability; char hostname_buf[50]; /* Check whether to output verbose headers */