comparison toys/bzcat.c @ 64:67ee3a0b76e1

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().
author Rob Landley <rob@landley.net>
date Thu, 18 Jan 2007 22:00:12 -0500
parents 60a7fb8ddeb4
children 25447caf1b4b
comparison
equal deleted inserted replaced
63:69efffcacd70 64:67ee3a0b76e1
5 5
6 #include "toys.h" 6 #include "toys.h"
7 7
8 int bzcat_main(void) 8 int bzcat_main(void)
9 { 9 {
10 char *error = bunzipStream(0, 1); 10 bunzipStream(0, 1);
11 11
12 if (error) error_exit(error);
13 return 0; 12 return 0;
14 } 13 }