summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphessler <phessler@openbsd.org>2012-07-11 10:40:47 +0000
committerphessler <phessler@openbsd.org>2012-07-11 10:40:47 +0000
commit3e64c6bbd0671da9b102d57281087f4ffc0f7cd6 (patch)
tree7e2685175cd8ed8cbe52b3be089d854d475b165a
parentcleanup offset argument in default_print_* functions, pointed out by Mike Small (diff)
downloadwireguard-openbsd-3e64c6bbd0671da9b102d57281087f4ffc0f7cd6.tar.xz
wireguard-openbsd-3e64c6bbd0671da9b102d57281087f4ffc0f7cd6.zip
Unbreak the tree for gcc2 arches.
Instead of having no limit for some arrays, limit them to the number of acceptable options. pointed out by miod@
-rw-r--r--usr.sbin/rtadvd/rtadvd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/rtadvd/rtadvd.h b/usr.sbin/rtadvd/rtadvd.h
index 320b90b7104..34ffbaeeb80 100644
--- a/usr.sbin/rtadvd/rtadvd.h
+++ b/usr.sbin/rtadvd/rtadvd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtadvd.h,v 1.12 2012/07/08 10:46:00 phessler Exp $ */
+/* $OpenBSD: rtadvd.h,v 1.13 2012/07/11 10:40:47 phessler Exp $ */
/* $KAME: rtadvd.h,v 1.20 2002/05/29 10:13:10 itojun Exp $ */
/*
@@ -87,14 +87,14 @@ struct rdnss {
u_int32_t lifetime;
int servercnt;
- struct in6_addr servers[];
+ struct in6_addr servers[100];
};
struct dnssldom {
TAILQ_ENTRY(dnssldom) entry;
u_int32_t length;
- char domain[];
+ char domain[100];
};
struct dnssl {