chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27eda16
)
util: Add _sentinel_ to strextend()
author
Colin Walters
<walters@verbum.org>
Tue, 30 Apr 2013 17:11:49 +0000
(13:11 -0400)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Tue, 30 Apr 2013 17:49:44 +0000
(13:49 -0400)
Since it must be NULL terminated.
src/shared/util.h
patch
|
blob
|
history
diff --git
a/src/shared/util.h
b/src/shared/util.h
index 5d1b0b1c31c5b6eddffb6faaa8896fd3a77ff59b..eee66ccf647bfcde0c34db9c9d41cffe2c1c9fc3 100644
(file)
--- 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);