diff options
author | bapt <bapt@FreeBSD.org> | 2015-05-09 19:00:16 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-05-09 19:00:16 +0000 |
commit | 33ff7a2e5e46d1c1cb93414099ca921c73b148d5 (patch) | |
tree | fcc0e48f8772bcf1b870d5f663122166639cd24b /usr.sbin/pw/fileupd.c | |
parent | 3359a0353713239b8c02ee5bdd66750d74915a05 (diff) | |
download | FreeBSD-src-33ff7a2e5e46d1c1cb93414099ca921c73b148d5.zip FreeBSD-src-33ff7a2e5e46d1c1cb93414099ca921c73b148d5.tar.gz |
Use sbuf(9) instead of homebrewed buffered string
Diffstat (limited to 'usr.sbin/pw/fileupd.c')
-rw-r--r-- | usr.sbin/pw/fileupd.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/usr.sbin/pw/fileupd.c b/usr.sbin/pw/fileupd.c index 7df4bb1..d2987ec 100644 --- a/usr.sbin/pw/fileupd.c +++ b/usr.sbin/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) { |