From: Kay Sievers Date: Mon, 1 Jun 2009 19:10:29 +0000 (+0200) Subject: str[sp]cpyl: add __attribute__ ((sentinel)) X-Git-Tag: 174~1019 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b61f48a0e8a4ad264bc0e904ea8bf3b054d5f562;p=systemd str[sp]cpyl: add __attribute__ ((sentinel)) --- diff --git a/udev/lib/libudev-private.h b/udev/lib/libudev-private.h index 3eb3d795..dc02a842 100644 --- a/udev/lib/libudev-private.h +++ b/udev/lib/libudev-private.h @@ -176,9 +176,9 @@ size_t util_path_encode(const char *src, char *dest, size_t size); size_t util_path_decode(char *s); void util_remove_trailing_chars(char *path, char c); size_t util_strpcpy(char **dest, size_t size, const char *src); -size_t util_strpcpyl(char **dest, size_t size, const char *src, ...); +size_t util_strpcpyl(char **dest, size_t size, const char *src, ...) __attribute__ ((sentinel)); size_t util_strscpy(char *dest, size_t size, const char *src); -size_t util_strscpyl(char *dest, size_t size, const char *src, ...); +size_t util_strscpyl(char *dest, size_t size, const char *src, ...) __attribute__ ((sentinel)); int udev_util_replace_whitespace(const char *str, char *to, size_t len); int udev_util_replace_chars(char *str, const char *white); int udev_util_encode_string(const char *str, char *str_enc, size_t len);