summaryrefslogtreecommitdiffstats
path: root/usr.bin/ar
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>1998-12-06 07:36:44 +0000
committerarchie <archie@FreeBSD.org>1998-12-06 07:36:44 +0000
commit58d8b6ab3ea1df0891a1f1013674c37fd281bce5 (patch)
tree1edbb907ab3086c9e6ec0f6678fcb689ffce4b7f /usr.bin/ar
parent194c8b4f1f89c85e61fe09e0947c096f6ead70c4 (diff)
downloadFreeBSD-src-58d8b6ab3ea1df0891a1f1013674c37fd281bce5.zip
FreeBSD-src-58d8b6ab3ea1df0891a1f1013674c37fd281bce5.tar.gz
Eliminate compiler warnings from -Wall
Diffstat (limited to 'usr.bin/ar')
-rw-r--r--usr.bin/ar/Makefile4
-rw-r--r--usr.bin/ar/append.c2
-rw-r--r--usr.bin/ar/ar.c8
-rw-r--r--usr.bin/ar/archive.c4
-rw-r--r--usr.bin/ar/contents.c2
-rw-r--r--usr.bin/ar/delete.c2
-rw-r--r--usr.bin/ar/extract.c2
-rw-r--r--usr.bin/ar/misc.c2
-rw-r--r--usr.bin/ar/move.c2
-rw-r--r--usr.bin/ar/print.c2
-rw-r--r--usr.bin/ar/replace.c2
11 files changed, 16 insertions, 16 deletions
diff --git a/usr.bin/ar/Makefile b/usr.bin/ar/Makefile
index ec9b262..7392d13 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 ea2e04c..58c06b5 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 f27ff84..b2c85fc 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 c8803cc..71606bd 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 e000d535d..e31cd63 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 5824b61..152395b 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 c80e37c..89503f3 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 bcd9711..026c45d 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 c2dba36..3450ab4 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 4367628..accc2e4 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 b9a6cc6..0cbffd7 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>
OpenPOWER on IntegriCloud