summaryrefslogtreecommitdiff
path: root/sbin
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 /sbin
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 'sbin')
-rw-r--r--sbin/ipsecctl/pfkdump.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/ipsecctl/pfkdump.c b/sbin/ipsecctl/pfkdump.c
index b25cc9a4e7c..76d510313e4 100644
--- a/sbin/ipsecctl/pfkdump.c
+++ b/sbin/ipsecctl/pfkdump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkdump.c,v 1.25 2008/08/19 10:37:12 markus Exp $ */
+/* $OpenBSD: pfkdump.c,v 1.26 2009/11/13 20:09:54 jsg Exp $ */
/*
* Copyright (c) 2003 Markus Friedl. All rights reserved.
@@ -57,8 +57,8 @@ static void print_cred(struct sadb_ext *, struct sadb_msg *);
static void print_udpenc(struct sadb_ext *, struct sadb_msg *);
static void print_tag(struct sadb_ext *, struct sadb_msg *);
-static struct idname *lookup(struct idname [], u_int8_t);
-static char *lookup_name(struct idname [], u_int8_t);
+static struct idname *lookup(struct idname *, u_int8_t);
+static char *lookup_name(struct idname *, u_int8_t);
static void print_ext(struct sadb_ext *, struct sadb_msg *);
void pfkey_print_raw(u_int8_t *, ssize_t);
@@ -224,7 +224,7 @@ struct idname states[] = {
};
static struct idname *
-lookup(struct idname tab[], u_int8_t id)
+lookup(struct idname *tab, u_int8_t id)
{
struct idname *entry;
@@ -235,7 +235,7 @@ lookup(struct idname tab[], u_int8_t id)
}
static char *
-lookup_name(struct idname tab[], u_int8_t id)
+lookup_name(struct idname *tab, u_int8_t id)
{
struct idname *entry;