summaryrefslogtreecommitdiff
path: root/libbb/gz_open.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-07-19 22:28:02 +0000
committerEric Andersen <andersen@codepoet.org>2001-07-19 22:28:02 +0000
commit20aab260e2f7011523402464fb079f48e5899890 (patch)
treef7822e652f54884459d525f57f1ef18c03a126f7 /libbb/gz_open.c
parent0382eb886529fc4dab170e7d66883c20fe0e2883 (diff)
downloadbusybox-w32-20aab260e2f7011523402464fb079f48e5899890.tar.gz
busybox-w32-20aab260e2f7011523402464fb079f48e5899890.tar.bz2
busybox-w32-20aab260e2f7011523402464fb079f48e5899890.zip
Some adjustments, mostly from David McCullough <davidm@lineo.com> to
make busybox be more uClinux friendly. I also adjusted Config.h for uClinux so it will automagically disable apps the arn't going to work without fork() and such. -Erik
Diffstat (limited to 'libbb/gz_open.c')
-rw-r--r--libbb/gz_open.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/gz_open.c b/libbb/gz_open.c
index b23920b16..ef30ff894 100644
--- a/libbb/gz_open.c
+++ b/libbb/gz_open.c
@@ -15,7 +15,7 @@ extern FILE *gz_open(FILE *compressed_file, int *pid)
15 return(NULL); 15 return(NULL);
16 } 16 }
17 if ((*pid = fork()) == -1) { 17 if ((*pid = fork()) == -1) {
18 error_msg("fork failured"); 18 error_msg("fork failed");
19 return(NULL); 19 return(NULL);
20 } 20 }
21 if (*pid==0) { 21 if (*pid==0) {
@@ -29,7 +29,7 @@ extern FILE *gz_open(FILE *compressed_file, int *pid)
29 } 29 }
30 close(unzip_pipe[1]); 30 close(unzip_pipe[1]);
31 if (unzip_pipe[0] == -1) { 31 if (unzip_pipe[0] == -1) {
32 error_msg("Couldnt initialise gzip stream"); 32 error_msg("gzip stream init failed");
33 } 33 }
34 return(fdopen(unzip_pipe[0], "r")); 34 return(fdopen(unzip_pipe[0], "r"));
35} 35}