summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/regex2.h
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2013-04-17 17:39:29 +0000
committertedu <tedu@openbsd.org>2013-04-17 17:39:29 +0000
commit2be36617bb6be3f60e44cb636fdb1fa78531d399 (patch)
tree368c866377d5c958c50b0fc4fe319d8dbdeb6f92 /lib/libc/regex/regex2.h
parentpretty (diff)
downloadwireguard-openbsd-2be36617bb6be3f60e44cb636fdb1fa78531d399.tar.xz
wireguard-openbsd-2be36617bb6be3f60e44cb636fdb1fa78531d399.zip
silence some warnings by adding prototypes, casts, and headers as
appropriate. in regex, stop using the struct hack for a fixed size array
Diffstat (limited to 'lib/libc/regex/regex2.h')
-rw-r--r--lib/libc/regex/regex2.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/regex/regex2.h b/lib/libc/regex/regex2.h
index 15e15bc924d..7484ba26b5a 100644
--- a/lib/libc/regex/regex2.h
+++ b/lib/libc/regex/regex2.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: regex2.h,v 1.7 2004/11/30 17:04:23 otto Exp $ */
+/* $OpenBSD: regex2.h,v 1.8 2013/04/17 17:39:29 tedu Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994 Henry Spencer.
@@ -149,7 +149,7 @@ struct re_guts {
int backrefs; /* does it use back references? */
sopno nplus; /* how deep does it nest +s? */
/* catspace must be last */
- cat_t catspace[1]; /* actually [NC] */
+ cat_t catspace[NC]; /* actually [NC] */
};
/* misc utilities */