diff options
| author | Archie Cobbs <archie@FreeBSD.org> | 1998-12-06 07:36:44 +0000 |
|---|---|---|
| committer | Archie Cobbs <archie@FreeBSD.org> | 1998-12-06 07:36:44 +0000 |
| commit | 5d2b41cb4ecce3acbdf3c86d72f8b1106c35ed7c (patch) | |
| tree | fdcd7c2edeb0db09ae53ad94e68ed1f9793edc16 /usr.bin/ar | |
| parent | e6f93514c8ca48faabbd8eb77997a74f8f251536 (diff) | |
Notes
Diffstat (limited to 'usr.bin/ar')
| -rw-r--r-- | usr.bin/ar/Makefile | 4 | ||||
| -rw-r--r-- | usr.bin/ar/append.c | 2 | ||||
| -rw-r--r-- | usr.bin/ar/ar.c | 8 | ||||
| -rw-r--r-- | usr.bin/ar/archive.c | 4 | ||||
| -rw-r--r-- | usr.bin/ar/contents.c | 2 | ||||
| -rw-r--r-- | usr.bin/ar/delete.c | 2 | ||||
| -rw-r--r-- | usr.bin/ar/extract.c | 2 | ||||
| -rw-r--r-- | usr.bin/ar/misc.c | 2 | ||||
| -rw-r--r-- | usr.bin/ar/move.c | 2 | ||||
| -rw-r--r-- | usr.bin/ar/print.c | 2 | ||||
| -rw-r--r-- | usr.bin/ar/replace.c | 2 |
11 files changed, 16 insertions, 16 deletions
diff --git a/usr.bin/ar/Makefile b/usr.bin/ar/Makefile index ec9b2629eaa6e..7392d139db4de 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 ea2e04c64b074..58c06b5e0a79a 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 <sys/param.h> diff --git a/usr.bin/ar/ar.c b/usr.bin/ar/ar.c index f27ff84c43bb8..b2c85fc795371 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 <sys/param.h> @@ -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 c8803cc0bc1c3..71606bd3efb6f 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 <sys/param.h> @@ -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 e000d535dc590..e31cd639acfa3 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 <sys/param.h> diff --git a/usr.bin/ar/delete.c b/usr.bin/ar/delete.c index 5824b61224847..152395bef3a73 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 <sys/param.h> diff --git a/usr.bin/ar/extract.c b/usr.bin/ar/extract.c index c80e37ce50c89..89503f391c123 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 <sys/param.h> diff --git a/usr.bin/ar/misc.c b/usr.bin/ar/misc.c index bcd97118be228..026c45dcf5988 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 <sys/param.h> diff --git a/usr.bin/ar/move.c b/usr.bin/ar/move.c index c2dba365dce53..3450ab44bf612 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 <sys/param.h> diff --git a/usr.bin/ar/print.c b/usr.bin/ar/print.c index 436762859eb6b..accc2e4e60e61 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 <sys/param.h> diff --git a/usr.bin/ar/replace.c b/usr.bin/ar/replace.c index b9a6cc6dc7c57..0cbffd7c23f9d 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 <sys/param.h> |
