From 9fb83ab17d5135dad229841f43651a1aa3cd6578 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 31 Aug 2021 23:16:57 +0200 Subject: *: fix for -Wstrict-prototypes Just some "void" missing between empty braces. Signed-off-by: David Lamparter --- lib/getopt.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/getopt.c') diff --git a/lib/getopt.c b/lib/getopt.c index 71799c9b6d..a33d196015 100644 --- a/lib/getopt.c +++ b/lib/getopt.c @@ -206,11 +206,10 @@ static char *posixly_correct; whose names are inconsistent. */ #ifndef getenv -extern char *getenv(); +extern char *getenv(const char *); #endif -static char *my_index(str, chr) const char *str; -int chr; +static char *my_index(const char *str, int chr) { while (*str) { if (*str == chr) -- cgit v1.2.3