From 8b9345f7063acd2cef3e3fa05ae1ff07226657cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jerry=20Lundstr=C3=B6m?= Date: Fri, 18 Jan 2019 11:45:18 +0100 Subject: [PATCH] LGTM Alert - Fix `Local variable hides global variable` --- src/response_time_index.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/response_time_index.c b/src/response_time_index.c index 9600e8c7..8d10f804 100644 --- a/src/response_time_index.c +++ b/src/response_time_index.c @@ -399,9 +399,9 @@ void response_time_reset() static struct query* flushed_obj = 0; -const dns_message* response_time_flush(enum flush_mode mode) +const dns_message* response_time_flush(enum flush_mode fm) { - switch (mode) { + switch (fm) { case flush_get: if (qfirst && last_ts.tv_sec - qfirst->tm.ts.tv_sec >= max_sec) { if (flushed_obj)