repo: ngircd
action: commit
revision: 
path_from: 
revision_from: f47904bf954696803c0df8e756a57a3dabaa8845:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit f47904bf954696803c0df8e756a57a3dabaa8845
Author: Alexander Barton 
Date:   Mon Jan 2 00:56:31 2012 +0100

    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

diff --git a/src/ngircd/irc-info.c b/src/ngircd/irc-info.c
index 84ba9d9b718e5e13b685a041833d314167396786..
index ..ebb7be4afb5c7aed28a361d1fae6a34a79083176 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)

-----END OF PAGE-----