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
commitd8b9e0faa3460c476b2e30e33f85d3c45d75832b (patch)
tree718a4865bc637195eba03ee314533bf4505046c9 /pw/fileupd.c
parent07f6546979612511fa7f69bea50fe257e8ae562a (diff)
parent31af648934ea1701d783359919da4009225e7477 (diff)
downloadpw-darwin-d8b9e0faa3460c476b2e30e33f85d3c45d75832b.tar.gz
pw-darwin-d8b9e0faa3460c476b2e30e33f85d3c45d75832b.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) {