summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-08 23:43:47 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-08 23:43:47 +0000
commit210f2199dda50d6da588de992c8bb32053177ca6 (patch)
treed3b594b19ae49a7e6c7715e6d6bf3cc696bdbfe9
parentb6dcc28378f0d88b6f5d4732f53e584ebc58ec08 (diff)
downloadmandoc-210f2199dda50d6da588de992c8bb32053177ca6.tar.gz
Delete the __attribute__((__bounded__(...))) annotation.
That's an OpenBSD-specific gcc-4.2.1 security extension. It's certainly a bad idea to use such stuff in a compatibility header, as other operating systems just won't understand it.
-rw-r--r--compat_ohash.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/compat_ohash.h b/compat_ohash.h
index c5f81ec0..e3124c96 100644
--- a/compat_ohash.h
+++ b/compat_ohash.h
@@ -56,8 +56,7 @@ void ohash_delete(struct ohash *);
unsigned int ohash_lookup_interval(struct ohash *, const char *,
const char *, uint32_t);
unsigned int ohash_lookup_memory(struct ohash *, const char *,
- size_t, uint32_t)
- __attribute__ ((__bounded__(__string__,2,3)));
+ size_t, uint32_t);
void *ohash_find(struct ohash *, unsigned int);
void *ohash_remove(struct ohash *, unsigned int);
void *ohash_insert(struct ohash *, unsigned int, void *);