From 5ac3ea17df811a71fa64aff78ea1b900facd3364 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Sun, 29 Apr 2012 15:34:20 +0200 Subject: Fix attributes for fortify functions. --- rt/bits/mqueue2.h | 2 +- rt/mqueue.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'rt') diff --git a/rt/bits/mqueue2.h b/rt/bits/mqueue2.h index 87365304c2..b92194a660 100644 --- a/rt/bits/mqueue2.h +++ b/rt/bits/mqueue2.h @@ -34,7 +34,7 @@ __errordecl (__mq_open_wrong_number_of_args, __errordecl (__mq_open_missing_mode_and_attr, "mq_open with O_CREAT in second argument needs 4 arguments"); -__extern_always_inline mqd_t +__fortify_function mqd_t __NTH (mq_open (const char *__name, int __oflag, ...)) { if (__va_arg_pack_len () != 0 && __va_arg_pack_len () != 2) diff --git a/rt/mqueue.h b/rt/mqueue.h index b80d7491b2..9e2eafb18a 100644 --- a/rt/mqueue.h +++ b/rt/mqueue.h @@ -90,7 +90,7 @@ extern int mq_timedsend (mqd_t __mqdes, const char *__msg_ptr, #endif /* Define some inlines helping to catch common problems. */ -#if __USE_FORTIFY_LEVEL > 0 && defined __extern_always_inline \ +#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function \ && defined __va_arg_pack_len # include #endif -- cgit 1.4.1