From 05b6afeb4021eb2e6f9fc778b0fc22ae6786a00d Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Fri, 13 Nov 2009 20:09:55 +0000 Subject: 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@ --- usr.sbin/relayctl/parser.c | 6 +++--- usr.sbin/relayctl/parser.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'usr.sbin/relayctl') 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 @@ -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 @@ -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 *); -- cgit v1.2.3