From 975c8f9d43d4026bf1d669b08646e9d29a9d02e4 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Sat, 24 Nov 2001 02:01:26 +0000 Subject: run make indent --- inflate.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'inflate.c') diff --git a/inflate.c b/inflate.c index 15636f0..aec19a5 100644 --- a/inflate.c +++ b/inflate.c @@ -1,4 +1,4 @@ -/* $Id: inflate.c,v 1.2 2001/11/20 17:49:23 ukai Exp $ */ +/* $Id: inflate.c,v 1.3 2001/11/24 02:01:26 ukai Exp $ */ #include #include #include @@ -16,9 +16,10 @@ main(int argc, char **argv) if (argc > 1) { f = fopen(argv[1], "rb"); - if (! f) + if (!f) exit(1); - } else + } + else f = stdin; s.zalloc = Z_NULL; @@ -28,12 +29,12 @@ main(int argc, char **argv) if (status != Z_OK) exit(1); s.avail_in = 0; - s.next_out = (Bytef *)outbuf; + s.next_out = (Bytef *) outbuf; s.avail_out = sizeof(outbuf); - flush = Z_NO_FLUSH; + flush = Z_NO_FLUSH; while (1) { if (s.avail_in == 0) { - s.next_in = (Bytef *)inbuf; + s.next_in = (Bytef *) inbuf; s.avail_in = fread(inbuf, 1, sizeof(inbuf), f); } status = inflate(&s, flush); @@ -46,7 +47,7 @@ main(int argc, char **argv) exit(1); if (s.avail_out == 0) { fwrite(outbuf, 1, sizeof(outbuf), stdout); - s.next_out = (Bytef *)outbuf; + s.next_out = (Bytef *) outbuf; s.avail_out = sizeof(outbuf); } } -- cgit v1.2.3