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 | f8169403d8544ad1b4afe9e690f9d0b5e7aa9cac (patch) | |
| tree | 90b117fdc77c4ef7f9c90a98bedaaac870cb9ef6 /pw/fileupd.c | |
| parent | 0568ea814c233df50b602aad395969a743bb4eac (diff) | |
| download | pw-darwin-f8169403d8544ad1b4afe9e690f9d0b5e7aa9cac.tar.gz pw-darwin-f8169403d8544ad1b4afe9e690f9d0b5e7aa9cac.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) { |
