diff --git a/usr.bin/ar/Makefile b/usr.bin/ar/Makefile index ec9b2629eaa6..7392d139db4d 100644 --- a/usr.bin/ar/Makefile +++ b/usr.bin/ar/Makefile @@ -1,8 +1,8 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 -# $Id$ +# $Id: Makefile,v 1.7 1998/10/10 12:48:48 bde Exp $ PROG= ar -CFLAGS+=-I${.CURDIR} +CFLAGS+=-I${.CURDIR} -Wall SRCS= append.c ar.c archive.c contents.c delete.c extract.c misc.c \ move.c print.c replace.c MAN1aout=ar.1aout diff --git a/usr.bin/ar/append.c b/usr.bin/ar/append.c index ea2e04c64b07..58c06b5e0a79 100644 --- a/usr.bin/ar/append.c +++ b/usr.bin/ar/append.c @@ -35,7 +35,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)append.c 8.3 (Berkeley) 4/2/94"; +static const char sccsid[] = "@(#)append.c 8.3 (Berkeley) 4/2/94"; #endif /* not lint */ #include diff --git a/usr.bin/ar/ar.c b/usr.bin/ar/ar.c index f27ff84c43bb..b2c85fc79537 100644 --- a/usr.bin/ar/ar.c +++ b/usr.bin/ar/ar.c @@ -33,17 +33,17 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: ar.c,v 1.6 1997/06/23 06:41:30 charnier Exp $ */ #ifndef lint -static char copyright[] = +static const char copyright[] = "@(#) Copyright (c) 1990, 1993, 1994\n\ The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ #ifndef lint -static char sccsid[] = "@(#)ar.c 8.3 (Berkeley) 4/2/94"; +static const char sccsid[] = "@(#)ar.c 8.3 (Berkeley) 4/2/94"; #endif /* not lint */ #include @@ -80,7 +80,7 @@ main(argc, argv) { int c; char *p; - int (*fcall) __P((char **)); + int (*fcall) __P((char **)) = NULL; (void) setlocale(LC_TIME, "");; diff --git a/usr.bin/ar/archive.c b/usr.bin/ar/archive.c index c8803cc0bc1c..71606bd3efb6 100644 --- a/usr.bin/ar/archive.c +++ b/usr.bin/ar/archive.c @@ -35,7 +35,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)archive.c 8.3 (Berkeley) 4/2/94"; +static const char sccsid[] = "@(#)archive.c 8.3 (Berkeley) 4/2/94"; #endif /* not lint */ #include @@ -279,7 +279,7 @@ copy_ar(cfp, size) { static char pad = '\n'; off_t sz; - int from, nr, nw, off, to; + int from, nr = 0, nw, off, to; char buf[8*1024]; if (!(sz = size)) diff --git a/usr.bin/ar/contents.c b/usr.bin/ar/contents.c index e000d535dc59..e31cd639acfa 100644 --- a/usr.bin/ar/contents.c +++ b/usr.bin/ar/contents.c @@ -35,7 +35,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)contents.c 8.3 (Berkeley) 4/2/94"; +static const char sccsid[] = "@(#)contents.c 8.3 (Berkeley) 4/2/94"; #endif /* not lint */ #include diff --git a/usr.bin/ar/delete.c b/usr.bin/ar/delete.c index 5824b6122484..152395bef3a7 100644 --- a/usr.bin/ar/delete.c +++ b/usr.bin/ar/delete.c @@ -35,7 +35,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)delete.c 8.3 (Berkeley) 4/2/94"; +static const char sccsid[] = "@(#)delete.c 8.3 (Berkeley) 4/2/94"; #endif /* not lint */ #include diff --git a/usr.bin/ar/extract.c b/usr.bin/ar/extract.c index c80e37ce50c8..89503f391c12 100644 --- a/usr.bin/ar/extract.c +++ b/usr.bin/ar/extract.c @@ -35,7 +35,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)extract.c 8.3 (Berkeley) 4/2/94"; +static const char sccsid[] = "@(#)extract.c 8.3 (Berkeley) 4/2/94"; #endif /* not lint */ #include diff --git a/usr.bin/ar/misc.c b/usr.bin/ar/misc.c index bcd97118be22..026c45dcf598 100644 --- a/usr.bin/ar/misc.c +++ b/usr.bin/ar/misc.c @@ -35,7 +35,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)misc.c 8.3 (Berkeley) 4/2/94"; +static const char sccsid[] = "@(#)misc.c 8.3 (Berkeley) 4/2/94"; #endif /* not lint */ #include diff --git a/usr.bin/ar/move.c b/usr.bin/ar/move.c index c2dba365dce5..3450ab44bf61 100644 --- a/usr.bin/ar/move.c +++ b/usr.bin/ar/move.c @@ -35,7 +35,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)move.c 8.3 (Berkeley) 4/2/94"; +static const char sccsid[] = "@(#)move.c 8.3 (Berkeley) 4/2/94"; #endif /* not lint */ #include diff --git a/usr.bin/ar/print.c b/usr.bin/ar/print.c index 436762859eb6..accc2e4e60e6 100644 --- a/usr.bin/ar/print.c +++ b/usr.bin/ar/print.c @@ -35,7 +35,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)print.c 8.3 (Berkeley) 4/2/94"; +static const char sccsid[] = "@(#)print.c 8.3 (Berkeley) 4/2/94"; #endif /* not lint */ #include diff --git a/usr.bin/ar/replace.c b/usr.bin/ar/replace.c index b9a6cc6dc7c5..0cbffd7c23f9 100644 --- a/usr.bin/ar/replace.c +++ b/usr.bin/ar/replace.c @@ -35,7 +35,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)replace.c 8.3 (Berkeley) 4/2/94"; +static const char sccsid[] = "@(#)replace.c 8.3 (Berkeley) 4/2/94"; #endif /* not lint */ #include