summary refs log tree commit diff
path: root/user.c
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2026-02-01 20:04:41 +0300
committerNakidai <nakidai@disroot.org>2026-02-01 20:04:41 +0300
commite50f850d763e3b1e6b06b4b312512a5b006eabbc (patch)
tree8f40752a756182fff9615187b3f482c73b77fdef /user.c
parentac52bbe3427cda3bd2098ee35e06163885b21836 (diff)
downloadlibreircd-e50f850d763e3b1e6b06b4b312512a5b006eabbc.tar.gz
libreircd-e50f850d763e3b1e6b06b4b312512a5b006eabbc.zip
Fix all the warnings
The one in user.c is the funniest one
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;