From e1a773406d714ebf93ff63f3a0930c4ee62b37a1 Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Sun, 26 May 2013 10:57:07 +0000 Subject: [PATCH] Unsigned values are never less than zero --- src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c b/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c index a50616f708..76c259c5ec 100644 --- a/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c +++ b/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c @@ -603,12 +603,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_json_cdr_load) } } - if (globals.retries < 0) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Retries is negative, setting to 0\n"); - globals.retries = 0; - } - - if (globals.retries && globals.delay <= 0) { + if (globals.retries && globals.delay) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Retries set but delay 0 setting to 5000ms\n"); globals.delay = 5000; }