diff options
| author | christos <christos@NetBSD.org> | 2001-02-05 01:35:45 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2001-02-05 01:35:45 +0000 |
| commit | 6915289539a16f78ded725affc337b45babdf279 (patch) | |
| tree | b4e236b2f73d7ba83d8bbe68f017ab1365d87cf3 /usr.bin/bzip2 | |
| parent | 8f3b31ba6f05fad70b9c496341805931cef0ff6d (diff) | |
add missing prototypes in order to enable full WARNS
Diffstat (limited to 'usr.bin/bzip2')
| -rw-r--r-- | usr.bin/bzip2/Makefile | 4 | ||||
| -rw-r--r-- | usr.bin/bzip2/bzip2.c | 44 |
2 files changed, 35 insertions, 13 deletions
diff --git a/usr.bin/bzip2/Makefile b/usr.bin/bzip2/Makefile index 2f75c3771c4..de7b6d50c1c 100644 --- a/usr.bin/bzip2/Makefile +++ b/usr.bin/bzip2/Makefile @@ -1,8 +1,6 @@ -# $NetBSD: Makefile,v 1.3 2000/07/03 02:51:15 matt Exp $ +# $NetBSD: Makefile,v 1.4 2001/02/05 01:35:45 christos Exp $ PROG= bzip2 -WARNS= 0 -CWARNFLAGS+=-Wall -Wstrict-prototypes -Wpointer-arith LDSTATIC?= -static LDADD+= -lbz2 DPADD+= ${LIBBZ2} diff --git a/usr.bin/bzip2/bzip2.c b/usr.bin/bzip2/bzip2.c index 6acc983d8b2..77fbec318bb 100644 --- a/usr.bin/bzip2/bzip2.c +++ b/usr.bin/bzip2/bzip2.c @@ -1,4 +1,4 @@ -/* $NetBSD: bzip2.c,v 1.4 1999/04/08 18:34:27 tron Exp $ */ +/* $NetBSD: bzip2.c,v 1.5 2001/02/05 01:35:45 christos Exp $ */ /*-----------------------------------------------------------*/ /*--- A block-sorting, lossless compressor bzip2.c ---*/ @@ -282,6 +282,15 @@ Char progNameReally[FILE_NAME_LEN]; FILE *outputHandleJustInCase; Int32 workFactor; + +typedef + struct zzzz { + Char *name; + struct zzzz *link; + } + Cell; + + void panic ( Char* ) NORETURN; void ioError ( void ) NORETURN; void outOfMemory ( void ) NORETURN; @@ -297,6 +306,30 @@ void copyFileName ( Char*, Char* ); void* myMalloc ( Int32 ); +void compressStream ( FILE *, FILE * ); +Bool uncompressStream ( FILE *, FILE * ); +Bool testStream ( FILE * ); +void cadvise ( void ); +void showFileNames ( void ); +void mySignalCatcher ( IntNative ); +void mySIGSEGVorSIGBUScatcher ( IntNative ); +void pad ( Char * ); +Bool fileExists ( Char * ); +Bool notAStandardFile ( Char *, IntNative ); +void copyDatePermissionsAndOwner ( Char *, Char * ); +void setInterimPermissions ( Char * ); +Bool endsInBz2 ( Char * ); +Bool containsDubiousChars ( Char * ); +void compress ( Char * ); +void uncompress ( Char * ); +void testf ( Char * ); +void license ( void ); +void usage ( Char * ); +Cell *mkCell ( void ); +Cell *snocString ( Cell *, Char * ); +Bool myfeof ( FILE* f ); +IntNative main ( IntNative, Char *[] ); + /*---------------------------------------------------*/ /*--- Processing of complete files and streams ---*/ @@ -1261,15 +1294,6 @@ void usage ( Char *fullProgName ) The actual Dirty Work is done by the platform-specific macro APPEND_FILESPEC. --*/ - -typedef - struct zzzz { - Char *name; - struct zzzz *link; - } - Cell; - - /*---------------------------------------------*/ void *myMalloc ( Int32 n ) { |
