summaryrefslogtreecommitdiff
path: root/include/bm.h
diff options
context:
space:
mode:
authorAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-08-01 17:38:34 +0000
committerAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-08-01 17:38:34 +0000
commitd68eb8fee6d53373bd6305628015b381d50e5a81 (patch)
tree1a024d606a1af2da709084dc790f2510d6665ae6 /include/bm.h
parent594ac08ee4888800f45f3229059b0bcb5d56b45f (diff)
add __bounded__ attributes for userland headers; enabled with -Wbounded
ok deraadt@
Diffstat (limited to 'include/bm.h')
-rw-r--r--include/bm.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/bm.h b/include/bm.h
index 859e0a983f0..f16731ff14c 100644
--- a/include/bm.h
+++ b/include/bm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bm.h,v 1.6 2003/06/26 19:34:17 avsm Exp $ */
+/* $OpenBSD: bm.h,v 1.7 2003/08/01 17:38:33 avsm Exp $ */
/* $NetBSD: bm.h,v 1.3 1994/10/26 00:55:46 cgd Exp $ */
/*-
@@ -51,7 +51,8 @@ typedef struct {
__BEGIN_DECLS
bm_pat *bm_comp(u_char const *, size_t, u_char const *);
-u_char *bm_exec(bm_pat *, u_char *, size_t);
+u_char *bm_exec(bm_pat *, u_char *, size_t)
+ __attribute__ ((__bounded__(__string__,2,3)));
void bm_free(bm_pat *);
__END_DECLS