summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfctl
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2009-11-13 20:09:55 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2009-11-13 20:09:55 +0000
commit05b6afeb4021eb2e6f9fc778b0fc22ae6786a00d (patch)
tree3c5ddeb4cc99eb2a5258b491843a97c0267166c2 /usr.sbin/ospfctl
parent4c10f81d590394179fc04542a88a8ec568b448cb (diff)
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')
-rw-r--r--usr.sbin/ospfctl/parser.c6
-rw-r--r--usr.sbin/ospfctl/parser.h6
2 files changed, 6 insertions, 6 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;
diff --git a/usr.sbin/ospfctl/parser.h b/usr.sbin/ospfctl/parser.h
index 2815000c26c..d3366431a24 100644
--- a/usr.sbin/ospfctl/parser.h
+++ b/usr.sbin/ospfctl/parser.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.h,v 1.9 2009/11/02 20:23:29 claudio Exp $ */
+/* $OpenBSD: parser.h,v 1.10 2009/11/13 20:09:54 jsg Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -61,8 +61,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 *);