summaryrefslogtreecommitdiffstats
path: root/pw/fileupd.c
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2015-05-27 01:19:58 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2015-05-27 01:19:58 +0000
commit3e8fc1eb02fa41e55aefa2a1b769bf473fe908d5 (patch)
tree594b8eeade5f741a03600cb1ea4ee26d2f5d7afa /pw/fileupd.c
parente1d5f8adaef2987e7e5aadcff9f5cba77e83684c (diff)
parent09c3fc64aeceba152705f8feeb0d4df0413ff5af (diff)
downloadpw-darwin-3e8fc1eb02fa41e55aefa2a1b769bf473fe908d5.tar.gz
pw-darwin-3e8fc1eb02fa41e55aefa2a1b769bf473fe908d5.zip
Merge sync of head
Diffstat (limited to 'pw/fileupd.c')
-rw-r--r--pw/fileupd.c21
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) {