From 522c104b802eccb8649f2d020ef5ceb70ed82639 Mon Sep 17 00:00:00 2001 From: jsg Date: Wed, 6 Sep 2023 11:08:00 +0000 Subject: [PATCH] use ansi function decls --- usr.sbin/mrouted/cfparse.y | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/usr.sbin/mrouted/cfparse.y b/usr.sbin/mrouted/cfparse.y index bf06644987c..d8872cfb9ca 100644 --- a/usr.sbin/mrouted/cfparse.y +++ b/usr.sbin/mrouted/cfparse.y @@ -398,14 +398,13 @@ warn(const char *fmt, ...) } static void -yyerror(s) -char *s; +yyerror(char *s) { logit(LOG_ERR, 0, "%s: %s near line %d", configfilename, s, lineno); } static char * -next_word() +next_word(void) { static char buf[1024]; static char *p=NULL; @@ -440,7 +439,7 @@ next_word() } static int -yylex() +yylex(void) { int n; u_int32_t addr; @@ -514,7 +513,7 @@ yylex() } void -config_vifs_from_file() +config_vifs_from_file(void) { extern FILE *f; @@ -534,8 +533,7 @@ config_vifs_from_file() } static u_int32_t -valid_if(s) -char *s; +valid_if(char *s) { register vifi_t vifi; register struct uvif *v; @@ -548,8 +546,7 @@ char *s; } static const char * -ifconfaddr(a) - u_int32_t a; +ifconfaddr(u_int32_t a) { static char ifname[IFNAMSIZ]; struct ifaddrs *ifap, *ifa; -- 2.20.1