From 167c036e91fb24a62d627d16a2f3afa6d875c9e2 Mon Sep 17 00:00:00 2001 From: archie Date: Sun, 6 Dec 1998 22:58:23 +0000 Subject: Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). --- usr.bin/expand/Makefile | 1 + usr.bin/expand/expand.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.bin/expand') diff --git a/usr.bin/expand/Makefile b/usr.bin/expand/Makefile index 751df25..8e1369c 100644 --- a/usr.bin/expand/Makefile +++ b/usr.bin/expand/Makefile @@ -1,6 +1,7 @@ # @(#)Makefile 8.1 (Berkeley) 6/9/93 PROG= expand +CFLAGS+=-Wall MLINKS= expand.1 unexpand.1 .include diff --git a/usr.bin/expand/expand.c b/usr.bin/expand/expand.c index 37c9464..a8014f9 100644 --- a/usr.bin/expand/expand.c +++ b/usr.bin/expand/expand.c @@ -32,7 +32,7 @@ */ #ifndef lint -static char copyright[] = +static const char copyright[] = "@(#) Copyright (c) 1980, 1993\n\ The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ @@ -42,7 +42,7 @@ static char copyright[] = static char sccsid[] = "@(#)expand.c 8.1 (Berkeley) 6/9/93"; #else static const char rcsid[] = - "$Id: expand.c,v 1.2 1997/07/01 06:34:31 charnier Exp $"; + "$Id: expand.c,v 1.3 1998/02/02 07:10:59 cwt Exp $"; #endif #endif /* not lint */ -- cgit v1.1