* mdocml: Delete the __attribute__((__bounded__(...))) annotation.
@ 2014-08-08 23:43 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2014-08-08 23:43 UTC (permalink / raw)
To: source
Log Message:
-----------
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.
Modified Files:
--------------
mdocml:
compat_ohash.h
Revision Data
-------------
Index: compat_ohash.h
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/compat_ohash.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -Lcompat_ohash.h -Lcompat_ohash.h -u -p -r1.4 -r1.5
--- compat_ohash.h
+++ 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 *);
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-08 23:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-08 23:43 mdocml: Delete the __attribute__((__bounded__(...))) annotation schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).