summaryrefslogtreecommitdiff
path: root/src/libudev/strxcpyx.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-10-16 03:17:09 +0200
committerAnthony G. Basile <blueness@gentoo.org>2014-01-09 14:58:12 -0500
commitbae7baca80ea532372c7924fe5734808282c5b2e (patch)
tree5862965d7cd6684173f7e3068d110d6b2f3eed36 /src/libudev/strxcpyx.h
parentbc681b6fb2639772af71acc9fc4614a1b5932a7e (diff)
macro: clean up usage of gcc attributes
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/libudev/strxcpyx.h')
-rw-r--r--src/libudev/strxcpyx.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libudev/strxcpyx.h b/src/libudev/strxcpyx.h
index 962c389e93..e3450311df 100644
--- a/src/libudev/strxcpyx.h
+++ b/src/libudev/strxcpyx.h
@@ -24,8 +24,10 @@
#include <stdarg.h>
#include <stdbool.h>
+#include "macro.h"
+
size_t strpcpy(char **dest, size_t size, const char *src);
-size_t strpcpyf(char **dest, size_t size, const char *src, ...) __attribute__((format(printf, 3, 4)));
-size_t strpcpyl(char **dest, size_t size, const char *src, ...) __attribute__((sentinel));
+size_t strpcpyf(char **dest, size_t size, const char *src, ...) _printf_(3, 4);
+size_t strpcpyl(char **dest, size_t size, const char *src, ...) _sentinel_;
size_t strscpy(char *dest, size_t size, const char *src);
-size_t strscpyl(char *dest, size_t size, const char *src, ...) __attribute__((sentinel));
+size_t strscpyl(char *dest, size_t size, const char *src, ...) _sentinel_;