From e0ec3f0a536fabe0c8c47dd64da77855c0824adc Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Sat, 17 Dec 2022 17:38:03 +0100 Subject: resolve Warnings --- lib/io/io.c | 2 +- lib/io/io.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/io') diff --git a/lib/io/io.c b/lib/io/io.c index ed1ba14..160b4cb 100644 --- a/lib/io/io.c +++ b/lib/io/io.c @@ -19,7 +19,7 @@ void rstd(char *buf, unsigned long count) read(STDIN_FD, buf, count); } -void wstdf__(const char *buf, void **args) +void wstdf__(const char *buf, const void **args) { const char *start = buf; for (; *buf; ++buf) { diff --git a/lib/io/io.h b/lib/io/io.h index b68a75d..06cc541 100644 --- a/lib/io/io.h +++ b/lib/io/io.h @@ -6,10 +6,10 @@ void wstd(const char *buf); void rstd(char *buf, unsigned long count); -void wstdf__(const char *buf, void **args); +void wstdf__(const char *buf, const void **args); #define wstdf(buf, ...) { \ - void *__wstdf__args__[] = { __VA_ARGS__ }; \ + const void *__wstdf__args__[] = { __VA_ARGS__ }; \ wstdf__(buf, __wstdf__args__); \ } -- cgit v1.2.3-70-g09d2