Remove unused variable hostname in nslookup()
Squashes a warning.
This commit is contained in:
@@ -3022,10 +3022,10 @@ void userhost_nsl(UserhostItem *stuff, char *nick, char *args)
|
|||||||
BUILT_IN_COMMAND(nslookup)
|
BUILT_IN_COMMAND(nslookup)
|
||||||
{
|
{
|
||||||
#ifdef WANT_NSLOOKUP
|
#ifdef WANT_NSLOOKUP
|
||||||
char *host,
|
char *host;
|
||||||
*hostname,
|
char *cmd = NULL;
|
||||||
*cmd = NULL;
|
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
while ((host = next_arg(args, &args)))
|
while ((host = next_arg(args, &args)))
|
||||||
{
|
{
|
||||||
if (count == 0)
|
if (count == 0)
|
||||||
@@ -3047,7 +3047,7 @@ BUILT_IN_COMMAND(nslookup)
|
|||||||
if (!strchr(host, '.'))
|
if (!strchr(host, '.'))
|
||||||
userhostbase(host, userhost_nsl, 1, "%s%s%s", host, cmd ? space:empty_string, cmd?cmd:empty_string);
|
userhostbase(host, userhost_nsl, 1, "%s%s%s", host, cmd ? space:empty_string, cmd?cmd:empty_string);
|
||||||
else
|
else
|
||||||
hostname = do_nslookup(host, NULL, NULL, NULL, from_server, NULL, cmd ? cmd : NULL);
|
do_nslookup(host, NULL, NULL, NULL, from_server, NULL, cmd ? cmd : NULL);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user