diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2021-08-31 23:16:57 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2021-09-02 13:00:35 +0200 |
commit | 9fb83ab17d5135dad229841f43651a1aa3cd6578 (patch) | |
tree | 87ce17f7551687dff0cf6a2df633a1f8dbb49d7a /lib/getopt.c | |
parent | pceplib: fix for -Wstrict-prototypes (diff) | |
download | frr-9fb83ab17d5135dad229841f43651a1aa3cd6578.tar.xz frr-9fb83ab17d5135dad229841f43651a1aa3cd6578.zip |
*: fix for -Wstrict-prototypes
Just some "void" missing between empty braces.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/getopt.c')
-rw-r--r-- | lib/getopt.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/getopt.c b/lib/getopt.c index 71799c9b6..a33d19601 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) |