From 0209b2c932994e9ca55d39d98a83ea02aacd1332 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Sat, 18 Mar 2023 23:18:11 -0400 Subject: Modernize code by removing use of old style definitions. Also add -Werror=old-style-definition to enforce new code. Message-Id: --- libshouldbeinlibc/localhost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libshouldbeinlibc/localhost.c') diff --git a/libshouldbeinlibc/localhost.c b/libshouldbeinlibc/localhost.c index 9b7d4e09..96fd649e 100644 --- a/libshouldbeinlibc/localhost.c +++ b/libshouldbeinlibc/localhost.c @@ -28,7 +28,7 @@ after the first call (so the result should be copied before modification). If something goes wrong, 0 is returned, and errno set. */ char * -localhost () +localhost (void) { static char *buf = 0; static size_t buf_len = 0; -- cgit v1.2.3