summary refs log tree commit diff
path: root/writef.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 /writef.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 'writef.c')
-rw-r--r--writef.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/writef.c b/writef.c
index c5e6b95..51346d9 100644
--- a/writef.c
+++ b/writef.c
@@ -30,7 +30,7 @@ static void
 vstoref(const char *fmt, va_list ap)
 {
 	written = vsnprintf(buf, sizeof(buf) - 2, fmt, ap);
-	written = written < sizeof(buf) - 2 ? written : sizeof(buf) - 2;
+	written = written < (int)sizeof(buf) - 2 ? written : sizeof(buf) - 2;
 	memcpy(buf + written, "\r\n", 2);
 	written += 2;
 }