From 6af414cb2e9b1eabdee1227833b967757da4716d Mon Sep 17 00:00:00 2001 From: Mark Murray Date: Sun, 2 Dec 2001 23:29:26 +0000 Subject: [PATCH] Turn on WARNS=2. Use __FBSDID(). --- usr.bin/cmp/Makefile | 1 + usr.bin/cmp/cmp.c | 11 ++++++----- usr.bin/cmp/misc.c | 9 +++++---- usr.bin/cmp/regular.c | 9 +++++---- usr.bin/cmp/special.c | 9 +++++---- 5 files changed, 22 insertions(+), 17 deletions(-) diff --git a/usr.bin/cmp/Makefile b/usr.bin/cmp/Makefile index 6ec82e4f874..90a4c8e17c2 100644 --- a/usr.bin/cmp/Makefile +++ b/usr.bin/cmp/Makefile @@ -3,5 +3,6 @@ PROG= cmp SRCS= cmp.c misc.c regular.c special.c +WARNS?= 2 .include diff --git a/usr.bin/cmp/cmp.c b/usr.bin/cmp/cmp.c index 3d1e55f85b9..7a3d514a7fd 100644 --- a/usr.bin/cmp/cmp.c +++ b/usr.bin/cmp/cmp.c @@ -29,20 +29,21 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $FreeBSD$ - * */ +#include + +__FBSDID("$FreeBSD$"); + #ifndef lint static const char copyright[] = "@(#) Copyright (c) 1987, 1990, 1993, 1994\n\ The Regents of the University of California. All rights reserved.\n"; -#endif /* not lint */ +#endif #ifndef lint static const char sccsid[] = "@(#)cmp.c 8.3 (Berkeley) 4/2/94"; -#endif /* not lint */ +#endif #include #include diff --git a/usr.bin/cmp/misc.c b/usr.bin/cmp/misc.c index 258d8606396..686fc191f2c 100644 --- a/usr.bin/cmp/misc.c +++ b/usr.bin/cmp/misc.c @@ -29,14 +29,15 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $FreeBSD$ - * */ +#include + +__FBSDID("$FreeBSD$"); + #ifndef lint static const char sccsid[] = "@(#)misc.c 8.3 (Berkeley) 4/2/94"; -#endif /* not lint */ +#endif #include diff --git a/usr.bin/cmp/regular.c b/usr.bin/cmp/regular.c index 3c0b5ae1712..bf15a73fecb 100644 --- a/usr.bin/cmp/regular.c +++ b/usr.bin/cmp/regular.c @@ -29,14 +29,15 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $FreeBSD$ - * */ +#include + +__FBSDID("$FreeBSD$"); + #ifndef lint static const char sccsid[] = "@(#)regular.c 8.3 (Berkeley) 4/2/94"; -#endif /* not lint */ +#endif #include #include diff --git a/usr.bin/cmp/special.c b/usr.bin/cmp/special.c index 77d21bdd14e..be37f492647 100644 --- a/usr.bin/cmp/special.c +++ b/usr.bin/cmp/special.c @@ -29,14 +29,15 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $FreeBSD$ - * */ +#include + +__FBSDID("$FreeBSD$"); + #ifndef lint static const char sccsid[] = "@(#)special.c 8.3 (Berkeley) 4/2/94"; -#endif /* not lint */ +#endif #include