Module: ngircd.git Branch: master Commit: f01b09ce847b6895c84be378a324482170d3b56f URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=f01b0...
Author: Alexander Barton alex@barton.de Date: Sun Apr 29 12:36:23 2012 +0200
irc-login.c, login.c: add missing include of "string.h"
This fixes the following warnings with GCC 4.4.5 on Linux:
irc-login.c: In function ‘IRC_PASS’: irc-login.c:92: warning: implicit declaration of function ‘strlen’ irc-login.c:92: warning: incompatible implicit declaration of built-in function ‘strlen’ irc-login.c:113: warning: incompatible implicit declaration of built-in function ‘strlen’ irc-login.c:129: warning: implicit declaration of function ‘strchr’ irc-login.c:129: warning: incompatible implicit declaration of built-in function ‘strchr’ irc-login.c:133: warning: implicit declaration of function ‘strcmp’ irc-login.c: In function ‘IRC_SERVICE’: irc-login.c:556: warning: incompatible implicit declaration of built-in function ‘strchr’ login.c: In function ‘Login_User’: login.c:131: warning: implicit declaration of function ‘strcmp’
---
src/ngircd/irc-login.c | 1 + src/ngircd/login.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/ngircd/irc-login.c b/src/ngircd/irc-login.c index bf3254c..6c1c708 100644 --- a/src/ngircd/irc-login.c +++ b/src/ngircd/irc-login.c @@ -19,6 +19,7 @@ #include "imp.h" #include <assert.h> #include <stdlib.h> +#include <string.h> #include <strings.h>
#include "conn-func.h" diff --git a/src/ngircd/login.c b/src/ngircd/login.c index 3808997..7f0299c 100644 --- a/src/ngircd/login.c +++ b/src/ngircd/login.c @@ -19,6 +19,7 @@ #include "imp.h" #include <assert.h> #include <stdlib.h> +#include <string.h> #include <strings.h> #include <unistd.h>