From dccb3732f7a7faa01e42bddd9b14d61138840d1a Mon Sep 17 00:00:00 2001 From: Carlos Vicente Date: Wed, 18 Oct 2017 17:12:05 +0000 Subject: [PATCH] Set timeout initially to 0 per reviewer's suggestion --- src/snmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/snmp.c b/src/snmp.c index f27e64ff..1499cf6e 100644 --- a/src/snmp.c +++ b/src/snmp.c @@ -600,7 +600,7 @@ static int csnmp_config_add_host(oconfig_item_t *ci) { hd->interval = 0; /* These mean that we have not set a timeout or retry value */ - hd->timeout = 0xFFFFFFFFFFFFFFFF; + hd->timeout = 0; hd->retries = -1; for (int i = 0; i < ci->children_num; i++) { @@ -814,7 +814,7 @@ static void csnmp_host_open_session(host_definition_t *host) { } /* Set timeout & retries, if they have been changed from the default */ - if (host->timeout != 0xFFFFFFFFFFFFFFFF) { + if (host->timeout != 0) { /* net-snmp expects microseconds */ sess.timeout = CDTIME_T_TO_US(host->timeout); } -- 2.30.2