X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Fstrxcpyx.h;h=7be246d570da9b85e67c833f810453c02c1df103;hp=1229a4821df22d0f837d1ab8ee71a78c1cbd6eb6;hb=9f03ee51a2207954ef18be79ca3e11cd14ca56fd;hpb=d5a89d7dc17a5ba5cf4fc71f82963c5c94a31c3d diff --git a/src/shared/strxcpyx.h b/src/shared/strxcpyx.h index 1229a4821..7be246d57 100644 --- a/src/shared/strxcpyx.h +++ b/src/shared/strxcpyx.h @@ -24,8 +24,10 @@ #include #include +#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_;