From 16fd01204005674d22036f257153cc54cef95f33 Mon Sep 17 00:00:00 2001 From: pk910 Date: Sat, 13 Aug 2011 00:43:50 +0200 Subject: [PATCH] fixed last commit #4 --- modcmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modcmd.c b/modcmd.c index cb56f08..5e54392 100644 --- a/modcmd.c +++ b/modcmd.c @@ -11,7 +11,7 @@ struct trigger_callback { trigger_callback_t *func; struct trigger_callback *next; -} +}; static struct cmd_binding **cmd_binds; static struct cmd_function *cmd_functions = NULL; @@ -25,7 +25,7 @@ static int get_binds_index(char first_char) { } struct ClientSocket* get_prefered_bot(int botid) { - struct ClientSocket *client, *source = NULL; + struct ClientSocket *client; for(client = getBots(SOCKET_FLAG_READY, NULL); client; client = getBots(SOCKET_FLAG_READY, client)) { if(client->botid == botid && (client->flags & SOCKET_FLAG_PREFERED)) return client; -- 2.20.1