From e50f850d763e3b1e6b06b4b312512a5b006eabbc Mon Sep 17 00:00:00 2001 From: Nakidai Date: Sun, 1 Feb 2026 20:04:41 +0300 Subject: Fix all the warnings The one in user.c is the funniest one --- user.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'user.c') 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; -- cgit 1.4.1