From ee0a3970c8d314c36d3bd5378e45da33342c5c24 Mon Sep 17 00:00:00 2001 From: Aaron Jones Date: Mon, 31 Jul 2017 04:46:33 +0000 Subject: [PATCH] modules/m_whois.c: misc cleanup for compiler warning m_whois.c:331:8: warning: declaration shadows a local variable [-Wshadow] --- modules/m_whois.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/m_whois.c b/modules/m_whois.c index 36d1cae3..6d5c9115 100644 --- a/modules/m_whois.c +++ b/modules/m_whois.c @@ -328,11 +328,11 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy) if(MyClient(target_p) && !EmptyString(target_p->localClient->opername) && IsOper(target_p) && IsOper(source_p)) { - char buf[512]; - rb_snprintf(buf, sizeof(buf), "is opered as %s, privset %s", + char obuf[512]; + rb_snprintf(obuf, sizeof(obuf), "is opered as %s, privset %s", target_p->localClient->opername, target_p->localClient->privset->name); sendto_one_numeric(source_p, RPL_WHOISSPECIAL, form_str(RPL_WHOISSPECIAL), - target_p->name, buf); + target_p->name, obuf); } if(IsSSLClient(target_p))