diff options
| author | Glen Barber <gjb@FreeBSD.org> | 2015-05-28 17:06:50 +0000 |
|---|---|---|
| committer | Glen Barber <gjb@FreeBSD.org> | 2015-05-28 17:06:50 +0000 |
| commit | 45c15aa01fd76d96e6e3f65c7250ea9f2de7fb57 (patch) | |
| tree | 6c44962b66297a39a82c519c68b06d6281586ced /pw/fileupd.c | |
| parent | 93ae7946aadb01fb82fbc9c29e469826848f9523 (diff) | |
| parent | 9450d093eacc6a58d124997fb60de631275447b1 (diff) | |
| download | pw-darwin-45c15aa01fd76d96e6e3f65c7250ea9f2de7fb57.tar.gz pw-darwin-45c15aa01fd76d96e6e3f65c7250ea9f2de7fb57.zip | |
MFH: r282615-r283655
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'pw/fileupd.c')
| -rw-r--r-- | pw/fileupd.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/pw/fileupd.c b/pw/fileupd.c index 7df4bb1..dc32712 100644 --- a/pw/fileupd.c +++ b/pw/fileupd.c @@ -29,32 +29,11 @@ static const char rcsid[] = "$FreeBSD$"; #endif /* not lint */ -#include <stdio.h> -#include <fcntl.h> #include <stdlib.h> -#include <string.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <sys/param.h> -#include <errno.h> -#include <unistd.h> #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) { |
