From 67fd4f3e233a086c46e200c3ec3cf2df02843b40 Mon Sep 17 00:00:00 2001 From: Chris Pressey Date: Wed, 5 Jan 2005 00:33:50 +0000 Subject: [PATCH] Raise WARNS to 6: - Constify the typecast in a macro. --- usr.bin/ruptime/Makefile | 4 ++-- usr.bin/ruptime/ruptime.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.bin/ruptime/Makefile b/usr.bin/ruptime/Makefile index 9d96aaab67..876b757446 100644 --- a/usr.bin/ruptime/Makefile +++ b/usr.bin/ruptime/Makefile @@ -1,7 +1,7 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 -# $DragonFly: src/usr.bin/ruptime/Makefile,v 1.3 2004/09/26 15:29:11 asmodai Exp $ +# $DragonFly: src/usr.bin/ruptime/Makefile,v 1.4 2005/01/05 00:33:50 cpressey Exp $ PROG= ruptime -WARNS?= 3 +WARNS?= 6 .include diff --git a/usr.bin/ruptime/ruptime.c b/usr.bin/ruptime/ruptime.c index a61479c3f2..7ee7559ada 100644 --- a/usr.bin/ruptime/ruptime.c +++ b/usr.bin/ruptime/ruptime.c @@ -33,7 +33,7 @@ * @(#) Copyright (c) 1983, 1993, 1994 The Regents of the University of California. All rights reserved. * @(#)ruptime.c 8.2 (Berkeley) 4/5/94 * $FreeBSD: src/usr.bin/ruptime/ruptime.c,v 1.12.2.1 2000/06/30 09:45:00 ps Exp $ - * $DragonFly: src/usr.bin/ruptime/ruptime.c,v 1.7 2004/07/23 09:24:00 asmodai Exp $ + * $DragonFly: src/usr.bin/ruptime/ruptime.c,v 1.8 2005/01/05 00:33:50 cpressey Exp $ */ #include @@ -207,7 +207,7 @@ interval(time_t tval, const char *updown) return (resbuf); } -#define HS(a) ((struct hs *)(a)) +#define HS(a) ((const struct hs *)(a)) /* Alphabetical comparison. */ int -- 2.41.0