From: pk910 Date: Fri, 12 Aug 2011 22:43:50 +0000 (+0200) Subject: fixed last commit #4 X-Git-Tag: v5.3~570 X-Git-Url: http://git.pk910.de/?a=commitdiff_plain;h=16fd01204005674d22036f257153cc54cef95f33;p=NeonServV5.git fixed last commit #4 --- 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;