X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fstrv.c;h=adeee282b77a6f2f3ca01645062bcbcc9da12880;hb=44b601bc79e46722bc0f0862ee0ce34a2284ef11;hp=2df478f30bbce900cb3e2b0673b61a1e4eada0c2;hpb=a6fde35332f5e7f78bff437d7b7bfded83debbaa;p=elogind.git diff --git a/src/shared/strv.c b/src/shared/strv.c index 2df478f30..adeee282b 100644 --- a/src/shared/strv.c +++ b/src/shared/strv.c @@ -424,21 +424,6 @@ fail: return NULL; } -char **strv_appendf(char **l, const char *format, ...) { - va_list ap; - _cleanup_free_ char *s = NULL; - int r; - - va_start(ap, format); - r = vasprintf(&s, format, ap); - va_end(ap); - - if (r < 0) - return NULL; - - return strv_append(l, s); -} - int strv_push(char ***l, char *value) { char **c; unsigned n;