about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2012-01-02 00:56:31 +0100
committerAlexander Barton <alex@barton.de>2012-01-02 00:56:31 +0100
commitf47904bf954696803c0df8e756a57a3dabaa8845 (patch)
treee880de7472b5e3fee971fed4c8a19a2c374f6589 /src
parent70eb8219f526a7c3cbcab54e97733572ac16e50d (diff)
downloadngircd-f47904bf954696803c0df8e756a57a3dabaa8845.tar.gz
ngircd-f47904bf954696803c0df8e756a57a3dabaa8845.zip
Remove unused "bool have_arg" from IRC_WHO()
This fixes:

 irc-info.c: In function ‘IRC_WHO’:
 irc-info:936:18: warning: variable ‘have_arg’ set but not used
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/irc-info.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ngircd/irc-info.c b/src/ngircd/irc-info.c
index 84ba9d9b..ebb7be4a 100644
--- a/src/ngircd/irc-info.c
+++ b/src/ngircd/irc-info.c
@@ -933,7 +933,7 @@ IRC_WHO_Mask(CLIENT *Client, char *Mask, bool OnlyOps)
 GLOBAL bool
 IRC_WHO(CLIENT *Client, REQUEST *Req)
 {
-	bool only_ops, have_arg;
+	bool only_ops;
 	CHANNEL *chan;
 
 	assert (Client != NULL);
@@ -944,7 +944,6 @@ IRC_WHO(CLIENT *Client, REQUEST *Req)
 					  Client_ID(Client), Req->command);
 
 	only_ops = false;
-	have_arg = false;
 
 	if (Req->argc == 2) {
 		if (strcmp(Req->argv[1], "o") == 0)