summary refs log tree commit diff
path: root/user.c
diff options
context:
space:
mode:
Diffstat (limited to 'user.c')
-rw-r--r--user.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/user.c b/user.c
index 84c6584..ba88beb 100644
--- a/user.c
+++ b/user.c
@@ -51,7 +51,9 @@ user_reg(struct Peer *peer, const char *nick, const char *user, const char *real
 {
 	int was_registered;
 	unsigned long m;
-	const char *p;
+	/* c language is stupid shit: declaring p correctly (as const char *, as mode points
+	 * to a const char) causes a warning, so to silence it p should be char * */
+	char *p;
 
 	was_registered = *peer->nick && *peer->user && *peer->real;