aboutsummaryrefslogtreecommitdiffstats
path: root/include/slibc-error.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-10-17 02:09:54 +0200
committerMattias Andrée <maandree@operamail.com>2015-10-17 02:09:54 +0200
commitc5fff98a6b144deb338e70a909f1efcb03dd44ad (patch)
tree71bd6c1165c5cc8c256a9713d35cb49da7a4a79c /include/slibc-error.h
parentfix errors (diff)
downloadslibc-c5fff98a6b144deb338e70a909f1efcb03dd44ad.tar.gz
slibc-c5fff98a6b144deb338e70a909f1efcb03dd44ad.tar.bz2
slibc-c5fff98a6b144deb338e70a909f1efcb03dd44ad.tar.xz
improve attributes
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'include/slibc-error.h')
-rw-r--r--include/slibc-error.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/slibc-error.h b/include/slibc-error.h
index 8fc26bc..9c8a895 100644
--- a/include/slibc-error.h
+++ b/include/slibc-error.h
@@ -199,7 +199,7 @@
* Helper function to keep track of the line of origin, in a
* thread-safe manner, without requiring new revisions of C.
*/
-int* __slibc_error_line(void) __GCC_ONLY(__attribute__((const))); /* TODO not implemented */
+int* __slibc_error_line(void) __GCC_ONLY(__attribute__((__const__))); /* TODO not implemented */
/**
* Print a description of an error, and where the error occurred.
@@ -222,7 +222,7 @@ int* __slibc_error_line(void) __GCC_ONLY(__attribute__((const))); /* TODO not im
* @param ... Formatting-arguments for `format`.
*/
void slibc_perror(const char*, const char*, int, const char*, int*, const char*, const char*, ...)
- __GCC_ONLY(__attribute__((nonnull(2, 4), format(slibc_printf, 7, 8))));
+ __GCC_ONLY(__attribute__((__nonnull__(2, 4), __format__(__slibc_printf__, 7, 8))));