aboutsummaryrefslogtreecommitdiff
path: root/toys/bzcat.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-01-18 22:00:12 -0500
committerRob Landley <rob@landley.net>2007-01-18 22:00:12 -0500
commit6000f13e8ac8c17c1f01fcafc8066bb7b419f224 (patch)
tree5620ab49b2bdf8fd8189840067fdfd2020e4ba58 /toys/bzcat.c
parent901637760b4206e968e73dd5ff7430c107c27b57 (diff)
downloadtoybox-6000f13e8ac8c17c1f01fcafc8066bb7b419f224.tar.gz
In bunzip replace setjmp/longjmp handling with error_exit(), replace string
based handling of a 6-byte header with with two 24-bit integer reads. Use xmalloc() and xzalloc().
Diffstat (limited to 'toys/bzcat.c')
-rw-r--r--toys/bzcat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/toys/bzcat.c b/toys/bzcat.c
index 30437bb8..348a5939 100644
--- a/toys/bzcat.c
+++ b/toys/bzcat.c
@@ -7,8 +7,7 @@
int bzcat_main(void)
{
- char *error = bunzipStream(0, 1);
+ bunzipStream(0, 1);
- if (error) error_exit(error);
return 0;
}