summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/engine.c
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/engine.c
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/engine.c')
-rw-r--r--lib/libc/regex/engine.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/regex/engine.c b/lib/libc/regex/engine.c
index 024c4ea3844..3f3a68d7af1 100644
--- a/lib/libc/regex/engine.c
+++ b/lib/libc/regex/engine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: engine.c,v 1.15 2005/08/05 13:03:00 espie Exp $ */
+/* $OpenBSD: engine.c,v 1.16 2013/04/17 17:39:29 tedu Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994 Henry Spencer.
@@ -662,6 +662,7 @@ backref(struct match *m, char *start, char *stop, sopno startst, sopno stopst,
/* "can't happen" */
assert(nope);
/* NOTREACHED */
+ return NULL;
}
/*