FORTIFY_SOURCE: introduce __BIONIC_FORTIFY_UNKNOWN_SIZE macro

Replace all occurances of "(size_t) -1" with a
__BIONIC_FORTIFY_UNKNOWN_SIZE macro.

Change-Id: I0b188f6cf31417d2dbef0e1bd759de3f9782873a
This commit is contained in:
Nick Kralevich
2012-07-13 14:46:36 -07:00
parent 260bf8cfe0
commit 9b6cc223a3
3 changed files with 8 additions and 4 deletions

View File

@@ -507,6 +507,7 @@
__attribute__ ((always_inline)) \
__attribute__ ((gnu_inline)) \
__attribute__ ((artificial))
#define __BIONIC_FORTIFY_UNKNOWN_SIZE ((size_t) -1)
#endif
#endif /* !_SYS_CDEFS_H_ */