summaryrefslogtreecommitdiffstats
path: root/usr.sbin/relayctl
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/relayctl
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/relayctl')
-rw-r--r--usr.sbin/relayctl/parser.c6
-rw-r--r--usr.sbin/relayctl/parser.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/relayctl/parser.c b/usr.sbin/relayctl/parser.c
index 25c51285b68..b723e83143b 100644
--- a/usr.sbin/relayctl/parser.c
+++ b/usr.sbin/relayctl/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.21 2009/08/17 11:36:01 reyk Exp $ */
+/* $OpenBSD: parser.c,v 1.22 2009/11/13 20:09:54 jsg Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -158,7 +158,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;
@@ -235,7 +235,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/relayctl/parser.h b/usr.sbin/relayctl/parser.h
index 0a30ae4584c..e3b3b944025 100644
--- a/usr.sbin/relayctl/parser.h
+++ b/usr.sbin/relayctl/parser.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.h,v 1.10 2009/08/17 11:36:01 reyk Exp $ */
+/* $OpenBSD: parser.h,v 1.11 2009/11/13 20:09:54 jsg Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -42,5 +42,5 @@ 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 *);