modules/m_whois.c: misc cleanup for compiler warning

m_whois.c:331:8: warning: declaration shadows a local variable [-Wshadow]
This commit is contained in:
Aaron Jones 2017-07-31 04:46:33 +00:00
parent 72fd7c04ac
commit ee0a3970c8
No known key found for this signature in database
GPG key ID: 8AF0737488AB3012

View file

@ -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))