[systemd-commits] src/shared
Zbigniew JÄdrzejewski-Szmek
zbyszek at kemper.freedesktop.org
Tue Apr 30 10:57:39 PDT 2013
src/shared/util.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit a432cb691ca3c1e18b012cb8e9f6e5654b3652a2
Author: Colin Walters <walters at verbum.org>
Date: Tue Apr 30 13:11:49 2013 -0400
util: Add _sentinel_ to strextend()
Since it must be NULL terminated.
diff --git a/src/shared/util.h b/src/shared/util.h
index 5d1b0b1..eee66cc 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -633,7 +633,7 @@ static inline void *mempset(void *s, int c, size_t n) {
char *hexmem(const void *p, size_t l);
void *unhexmem(const char *p, size_t l);
-char *strextend(char **x, ...);
+char *strextend(char **x, ...) _sentinel_;
char *strrep(const char *s, unsigned n);
void* greedy_realloc(void **p, size_t *allocated, size_t need);
More information about the systemd-commits
mailing list