From 392c53b5602bf3e2509d8cca188c3f90be97c36e Mon Sep 17 00:00:00 2001 From: obrien Date: Mon, 5 May 2003 09:52:25 +0000 Subject: Make the __FBSDID usage consistent and protect copyright[] from Gcc 3.3's whining. --- games/fortune/fortune/fortune.c | 8 ++++---- games/fortune/strfile/strfile.c | 9 ++++----- games/fortune/unstr/unstr.c | 9 ++++----- 3 files changed, 12 insertions(+), 14 deletions(-) (limited to 'games/fortune') diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c index ad95e53..3234d2d 100644 --- a/games/fortune/fortune/fortune.c +++ b/games/fortune/fortune/fortune.c @@ -34,6 +34,7 @@ * SUCH DAMAGE. */ +#if 0 #ifndef lint static const char copyright[] = "@(#) Copyright (c) 1986, 1993\n\ @@ -41,12 +42,11 @@ static const char copyright[] = #endif /* not lint */ #ifndef lint -#if 0 static const char sccsid[] = "@(#)fortune.c 8.1 (Berkeley) 5/31/93"; -#endif -static const char rcsid[] = - "$FreeBSD$"; #endif /* not lint */ +#endif +#include +__FBSDID("$FreeBSD$"); # include diff --git a/games/fortune/strfile/strfile.c b/games/fortune/strfile/strfile.c index 5c62c0a..c0ef528 100644 --- a/games/fortune/strfile/strfile.c +++ b/games/fortune/strfile/strfile.c @@ -34,6 +34,7 @@ * SUCH DAMAGE. */ +#if 0 #ifndef lint static const char copyright[] = "@(#) Copyright (c) 1989, 1993\n\ @@ -41,13 +42,11 @@ static const char copyright[] = #endif /* not lint */ #ifndef lint -#if 0 static const char sccsid[] = "@(#)strfile.c 8.1 (Berkeley) 5/31/93"; -#else -static const char rcsid[] = - "$FreeBSD$"; -#endif #endif /* not lint */ +#endif +#include +__FBSDID("$FreeBSD$"); # include # include diff --git a/games/fortune/unstr/unstr.c b/games/fortune/unstr/unstr.c index 1512026..44c7a9f 100644 --- a/games/fortune/unstr/unstr.c +++ b/games/fortune/unstr/unstr.c @@ -34,6 +34,7 @@ * SUCH DAMAGE. */ +#if 0 #ifndef lint static const char copyright[] = "@(#) Copyright (c) 1991, 1993\n\ @@ -41,13 +42,11 @@ static const char copyright[] = #endif /* not lint */ #ifndef lint -#if 0 static const char sccsid[] = "@(#)unstr.c 8.1 (Berkeley) 5/31/93"; -#else -static const char rcsid[] = - "$FreeBSD$"; -#endif #endif /* not lint */ +#endif +#include +__FBSDID("$FreeBSD$"); /* * This program un-does what "strfile" makes, thereby obtaining the -- cgit v1.1