diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2010-01-13 11:33:13 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2010-01-13 11:33:13 +0000 |
commit | dd48abcd0e2db048cc44ce9a2fa58748a3fd41db (patch) | |
tree | 0d4f08f367ab64ab7988eaa7d29ce06053198754 /usr.sbin/ldpctl | |
parent | eb9be0aa71de0bc2368efd5edf9f7258b933accf (diff) |
Fix problems with incomplete arrays that was fixed in other ospfctl
based programs a few months back.
ok claudio@
Diffstat (limited to 'usr.sbin/ldpctl')
-rw-r--r-- | usr.sbin/ldpctl/parser.c | 6 | ||||
-rw-r--r-- | usr.sbin/ldpctl/parser.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/ldpctl/parser.c b/usr.sbin/ldpctl/parser.c index f3652d2a105..db9d8e16a3d 100644 --- a/usr.sbin/ldpctl/parser.c +++ b/usr.sbin/ldpctl/parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.c,v 1.2 2009/11/02 20:35:20 claudio Exp $ */ +/* $OpenBSD: parser.c,v 1.3 2010/01/13 11:33:12 jsg Exp $ */ /* * Copyright (c) 2009 Michele Marchetto <michele@openbsd.org> @@ -149,7 +149,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; @@ -229,7 +229,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/ldpctl/parser.h b/usr.sbin/ldpctl/parser.h index 78a72bb7d4f..b54b179fbbe 100644 --- a/usr.sbin/ldpctl/parser.h +++ b/usr.sbin/ldpctl/parser.h @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.h,v 1.2 2009/11/02 20:35:20 claudio Exp $ */ +/* $OpenBSD: parser.h,v 1.3 2010/01/13 11:33:12 jsg Exp $ */ /* * Copyright (c) 2009 Michele Marchetto <michele@openbsd.org> @@ -50,8 +50,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 *); |