summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-06-01 21:10:29 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-06-01 21:10:29 +0200
commitb61f48a0e8a4ad264bc0e904ea8bf3b054d5f562 (patch)
treecccf03f5b96d02e8f8ae40feab2987d1edd1eadd
parent82c785e5dcc4bd221da30d48ba427dd609d14f90 (diff)
str[sp]cpyl: add __attribute__ ((sentinel))
-rw-r--r--udev/lib/libudev-private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/udev/lib/libudev-private.h b/udev/lib/libudev-private.h
index 3eb3d7957f..dc02a842b8 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);