From: Alex Rousskov Date: Wed, 12 Jul 2017 15:00:48 +0000 (-0600) Subject: Made GCC happier after r15240 [-Werror=shadow]. X-Git-Tag: M-staged-PR71~74 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=494269cd0fda472b6075d190231b01521964ad59;p=thirdparty%2Fsquid.git Made GCC happier after r15240 [-Werror=shadow]. --- diff --git a/src/ipcache.cc b/src/ipcache.cc index 05145bb3ef..4b4079ff66 100644 --- a/src/ipcache.cc +++ b/src/ipcache.cc @@ -404,13 +404,13 @@ purge_entries_fromhosts(void) ipcacheRelease(i); } -ipcache_entry::ipcache_entry(const char *name) : +ipcache_entry::ipcache_entry(const char *aName): lastref(0), expires(0), error_message(nullptr), locks(0) // XXX: use Lock type ? { - hash.key = xstrdup(name); + hash.key = xstrdup(aName); Tolower(static_cast(hash.key)); expires = squid_curtime + Config.negativeDnsTtl; }