summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2023-09-06 11:08:01 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2023-09-06 11:08:01 +0000
commitf118fa0952196e5eebe77c73bc9de70da387f108 (patch)
tree77ead8d28551195e521798461173b0156b925a67
parent59c7b8f00689786be8dfe8c20f2cd9c7ea9c969e (diff)
use ansi function decls
-rw-r--r--usr.sbin/mrouted/cfparse.y15
1 files 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;