Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/bzip2 add missing prototypes in order to enable full...
details: https://anonhg.NetBSD.org/src/rev/10f73856652e
branches: trunk
changeset: 503369:10f73856652e
user: christos <christos%NetBSD.org@localhost>
date: Mon Feb 05 01:35:45 2001 +0000
description:
add missing prototypes in order to enable full WARNS
diffstat:
usr.bin/bzip2/Makefile | 4 +---
usr.bin/bzip2/bzip2.c | 44 ++++++++++++++++++++++++++++++++++----------
2 files changed, 35 insertions(+), 13 deletions(-)
diffs (85 lines):
diff -r e9757e0485ec -r 10f73856652e usr.bin/bzip2/Makefile
--- a/usr.bin/bzip2/Makefile Mon Feb 05 01:21:00 2001 +0000
+++ b/usr.bin/bzip2/Makefile Mon Feb 05 01:35:45 2001 +0000
@@ -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 -r e9757e0485ec -r 10f73856652e usr.bin/bzip2/bzip2.c
--- a/usr.bin/bzip2/bzip2.c Mon Feb 05 01:21:00 2001 +0000
+++ b/usr.bin/bzip2/bzip2.c Mon Feb 05 01:35:45 2001 +0000
@@ -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 @@
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* 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 @@
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 )
{
Home |
Main Index |
Thread Index |
Old Index