summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospfctl/parser.c
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2009-11-13 20:09:54 +0000
committerjsg <jsg@openbsd.org>2009-11-13 20:09:54 +0000
commite331d0fcfdcfd214961490b758a0739f12e72e68 (patch)
treeb984c80f5ca34326778a172c3c87a7e35d7ca1a0 /usr.sbin/ospfctl/parser.c
parentAdd hw.sensors to dmesg request, 'go for it' deraadt@ (diff)
downloadwireguard-openbsd-e331d0fcfdcfd214961490b758a0739f12e72e68.tar.xz
wireguard-openbsd-e331d0fcfdcfd214961490b758a0739f12e72e68.zip
Don't use [] in function arguments when dealing with arrays
we don't know the size of, otherwise gcc >= 4 will error. ok markus@ deraadt@
Diffstat (limited to 'usr.sbin/ospfctl/parser.c')
-rw-r--r--usr.sbin/ospfctl/parser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ospfctl/parser.c b/usr.sbin/ospfctl/parser.c
index 8cfacec25eb..42717e9e330 100644
--- a/usr.sbin/ospfctl/parser.c
+++ b/usr.sbin/ospfctl/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.16 2009/11/02 20:23:29 claudio Exp $ */
+/* $OpenBSD: parser.c,v 1.17 2009/11/13 20:09:54 jsg Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -172,7 +172,7 @@ parse(int argc, char *argv[])
}
const struct token *
-match_token(const char *word, const struct token table[])
+match_token(const char *word, const struct token *table)
{
u_int i, match;
const struct token *t = NULL;
@@ -252,7 +252,7 @@ match_token(const char *word, const struct token table[])
}
void
-show_valid_args(const struct token table[])
+show_valid_args(const struct token *table)
{
int i;