summaryrefslogtreecommitdiffstats
path: root/pw/fileupd.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-05-09 19:00:16 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-05-09 19:00:16 +0000
commitf8169403d8544ad1b4afe9e690f9d0b5e7aa9cac (patch)
tree90b117fdc77c4ef7f9c90a98bedaaac870cb9ef6 /pw/fileupd.c
parent0568ea814c233df50b602aad395969a743bb4eac (diff)
downloadpw-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.c13
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) {