Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/cat Make this compile with WARNS = 2
details: https://anonhg.NetBSD.org/src/rev/698c1ca0a127
branches: trunk
changeset: 474484:698c1ca0a127
user: christos <christos%NetBSD.org@localhost>
date: Thu Jul 08 01:56:09 1999 +0000
description:
Make this compile with WARNS = 2
diffstat:
bin/cat/Makefile | 3 ++-
bin/cat/cat.c | 6 +++---
2 files changed, 5 insertions(+), 4 deletions(-)
diffs (39 lines):
diff -r 193668f606da -r 698c1ca0a127 bin/cat/Makefile
--- a/bin/cat/Makefile Thu Jul 08 01:55:38 1999 +0000
+++ b/bin/cat/Makefile Thu Jul 08 01:56:09 1999 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.8 1997/07/20 22:36:26 christos Exp $
+# $NetBSD: Makefile,v 1.9 1999/07/08 01:56:09 christos Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
+WARNS=2
PROG= cat
.include <bsd.prog.mk>
diff -r 193668f606da -r 698c1ca0a127 bin/cat/cat.c
--- a/bin/cat/cat.c Thu Jul 08 01:55:38 1999 +0000
+++ b/bin/cat/cat.c Thu Jul 08 01:56:09 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cat.c,v 1.20 1999/04/26 09:15:59 hannken Exp $ */
+/* $NetBSD: cat.c,v 1.21 1999/07/08 01:56:09 christos Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -47,7 +47,7 @@
#if 0
static char sccsid[] = "@(#)cat.c 8.2 (Berkeley) 4/27/95";
#else
-__RCSID("$NetBSD: cat.c,v 1.20 1999/04/26 09:15:59 hannken Exp $");
+__RCSID("$NetBSD: cat.c,v 1.21 1999/07/08 01:56:09 christos Exp $");
#endif
#endif /* not lint */
@@ -66,7 +66,7 @@
int bflag, eflag, nflag, sflag, tflag, vflag;
int rval;
-char *filename;
+const char *filename;
int main __P((int, char *[]));
void cook_args __P((char *argv[]));
Home |
Main Index |
Thread Index |
Old Index