summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen2001-04-05 18:30:38 +0000
committerEric Andersen2001-04-05 18:30:38 +0000
commit4e2439ad27b6d25e801fe59557760050a828bb35 (patch)
tree718aa44b3e35c860f55c9b08911e501f4c6b2df9
parent911af57ff820432b2b194a02e6c11a0f10be7b50 (diff)
downloadbusybox-4e2439ad27b6d25e801fe59557760050a828bb35.zip
busybox-4e2439ad27b6d25e801fe59557760050a828bb35.tar.gz
It seems all the stdout munging was useless anyways, since
deb_extract and all its called functions do nothing with stdout anyways. Axe that stuff. -Erik
-rw-r--r--archival/dpkg.c3
-rw-r--r--dpkg.c3
2 files changed, 0 insertions, 6 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c
index dc0b23e..af200e1 100644
--- a/archival/dpkg.c
+++ b/archival/dpkg.c
@@ -583,7 +583,6 @@ static int dpkg_dounpack(package_t *pkg)
char *adminscripts[] = { "/prerm", "/postrm", "/preinst", "/postinst",
"/conffiles", "/md5sums", "/shlibs", "/templates" };
char buf[1024], buf2[1024];
- FILE *myfile = stdout;
DPRINTF("Unpacking %s\n", pkg->package);
@@ -615,9 +614,7 @@ static int dpkg_dounpack(package_t *pkg)
strcpy(lst_file, infodir);
strcat(lst_file, pkg->package);
strcat(lst_file, ".list");
- outfp = freopen(lst_file, "w", myfile);
deb_extract(dpkg_deb_list, NULL, pkg->file);
- myfile = freopen(NULL, "w", outfp);
printf("done\n");
getchar();
diff --git a/dpkg.c b/dpkg.c
index dc0b23e..af200e1 100644
--- a/dpkg.c
+++ b/dpkg.c
@@ -583,7 +583,6 @@ static int dpkg_dounpack(package_t *pkg)
char *adminscripts[] = { "/prerm", "/postrm", "/preinst", "/postinst",
"/conffiles", "/md5sums", "/shlibs", "/templates" };
char buf[1024], buf2[1024];
- FILE *myfile = stdout;
DPRINTF("Unpacking %s\n", pkg->package);
@@ -615,9 +614,7 @@ static int dpkg_dounpack(package_t *pkg)
strcpy(lst_file, infodir);
strcat(lst_file, pkg->package);
strcat(lst_file, ".list");
- outfp = freopen(lst_file, "w", myfile);
deb_extract(dpkg_deb_list, NULL, pkg->file);
- myfile = freopen(NULL, "w", outfp);
printf("done\n");
getchar();