diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-05-09 19:00:16 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-05-09 19:00:16 +0000 |
commit | 6e7814395c1b2372a7de0986db48a982f2a07856 (patch) | |
tree | 5089aa8138faed630c903dde7e7637f522ce64d2 /pw/fileupd.c | |
parent | 9fc68690c69af5dd6a2440e749f34c62c59f9e81 (diff) | |
download | pw-darwin-6e7814395c1b2372a7de0986db48a982f2a07856.tar.gz pw-darwin-6e7814395c1b2372a7de0986db48a982f2a07856.tar.zst pw-darwin-6e7814395c1b2372a7de0986db48a982f2a07856.zip |
Use sbuf(9) instead of homebrewed buffered string
Diffstat (limited to 'pw/fileupd.c')
-rw-r--r-- | pw/fileupd.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/pw/fileupd.c b/pw/fileupd.c index 7df4bb1..d2987ec 100644 --- a/pw/fileupd.c +++ b/pw/fileupd.c @@ -42,19 +42,6 @@ static const char rcsid[] = #include "pwupd.h" int -extendline(char **buf, int * buflen, int needed) -{ - if (needed > *buflen) { - char *tmp = realloc(*buf, needed); - if (tmp == NULL) - return -1; - *buf = tmp; - *buflen = needed; - } - return *buflen; -} - -int extendarray(char ***buf, int * buflen, int needed) { if (needed > *buflen) { |