diff options
author | jsg <jsg@openbsd.org> | 2009-11-13 20:09:54 +0000 |
---|---|---|
committer | jsg <jsg@openbsd.org> | 2009-11-13 20:09:54 +0000 |
commit | e331d0fcfdcfd214961490b758a0739f12e72e68 (patch) | |
tree | b984c80f5ca34326778a172c3c87a7e35d7ca1a0 /usr.sbin/dvmrpctl | |
parent | Add hw.sensors to dmesg request, 'go for it' deraadt@ (diff) | |
download | wireguard-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/dvmrpctl')
-rw-r--r-- | usr.sbin/dvmrpctl/parser.c | 6 | ||||
-rw-r--r-- | usr.sbin/dvmrpctl/parser.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/dvmrpctl/parser.c b/usr.sbin/dvmrpctl/parser.c index 1dd0e447773..4082425cad8 100644 --- a/usr.sbin/dvmrpctl/parser.c +++ b/usr.sbin/dvmrpctl/parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.c,v 1.3 2009/11/02 20:32:17 claudio Exp $ */ +/* $OpenBSD: parser.c,v 1.4 2009/11/13 20:09:54 jsg Exp $ */ /* * Copyright (c) 2004, 2005, 2006 Esben Norby <norby@openbsd.org> @@ -142,7 +142,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; @@ -222,7 +222,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; diff --git a/usr.sbin/dvmrpctl/parser.h b/usr.sbin/dvmrpctl/parser.h index 56946315077..90ac2c75e49 100644 --- a/usr.sbin/dvmrpctl/parser.h +++ b/usr.sbin/dvmrpctl/parser.h @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.h,v 1.2 2009/11/02 20:32:17 claudio Exp $ */ +/* $OpenBSD: parser.h,v 1.3 2009/11/13 20:09:54 jsg Exp $ */ /* * Copyright (c) 2004, 2005, 2006 Esben Norby <norby@openbsd.org> @@ -51,8 +51,8 @@ struct parse_result { }; struct parse_result *parse(int, char *[]); -const struct token *match_token(const char *, const struct token []); -void show_valid_args(const struct token []); +const struct token *match_token(const char *, const struct token *); +void show_valid_args(const struct token *); int parse_addr(const char *, struct in_addr *); int parse_prefix(const char *, struct in_addr *, u_int8_t *); |