Remove unused variable hostname in nslookup()

Squashes a warning.
This commit is contained in:
Kevin Easton
2017-11-30 00:11:24 +11:00
parent 95b53cdd9f
commit f3f2ef6796

View File

@@ -3022,10 +3022,10 @@ void userhost_nsl(UserhostItem *stuff, char *nick, char *args)
BUILT_IN_COMMAND(nslookup)
{
#ifdef WANT_NSLOOKUP
char *host,
*hostname,
*cmd = NULL;
char *host;
char *cmd = NULL;
int count = 0;
while ((host = next_arg(args, &args)))
{
if (count == 0)
@@ -3047,7 +3047,7 @@ BUILT_IN_COMMAND(nslookup)
if (!strchr(host, '.'))
userhostbase(host, userhost_nsl, 1, "%s%s%s", host, cmd ? space:empty_string, cmd?cmd:empty_string);
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++;
}
#else