From b187bd95a017d3bf40335d8e13d09c72a579ce17 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Fri, 10 Jan 2014 21:06:51 +0100 Subject: [PATCH] compress: Add missing return types and declarations. --- src/bin/compress/compress.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/bin/compress/compress.c b/src/bin/compress/compress.c index 7c6da280c4..b68283cc11 100644 --- a/src/bin/compress/compress.c +++ b/src/bin/compress/compress.c @@ -494,6 +494,10 @@ void (*bgnd_flag)(); int do_decomp = 0; +void compress(void); +void decompress(void); +void copystat(char *ifname, char *ofname); + /***************************************************************** * TAG( main ) * @@ -947,6 +951,7 @@ long int out_count = 0; /* # of codes output (for debugging) */ * questions about this implementation to ames!jaw. */ +void compress() { register long fcode; register code_int i = 0; @@ -1215,6 +1220,7 @@ code_int code; * with those of the compress() routine. See the definitions above. */ +void decompress() { #ifdef BIG @@ -1515,8 +1521,8 @@ writeerr() exit ( 1 ); } -copystat(ifname, ofname) -char *ifname, *ofname; +void +copystat(char *ifname, char *ofname) { struct stat statbuf; int mode;