From a1ab0133973a053ec8cb7034b5f525c772d2c6d6 Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Thu, 2 May 1996 06:44:48 +0000 Subject: Sync with NetBSD 9600430. The port has gone over a major -Wall treat --- sys/arch/amiga/dev/rtc.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/arch/amiga/dev/rtc.h') diff --git a/sys/arch/amiga/dev/rtc.h b/sys/arch/amiga/dev/rtc.h index 46f50a5e5c0..417a8146192 100644 --- a/sys/arch/amiga/dev/rtc.h +++ b/sys/arch/amiga/dev/rtc.h @@ -1,4 +1,5 @@ -/* $NetBSD: rtc.h,v 1.2 1994/10/26 02:04:32 cgd Exp $ */ +/* $OpenBSD: rtc.h,v 1.2 1996/05/02 06:44:25 niklas Exp $ */ +/* $NetBSD: rtc.h,v 1.3 1996/04/21 21:12:19 veego Exp $ */ /* * Copyright (c) 1994 Christian E. Hopps @@ -97,7 +98,7 @@ struct rtclock3000 { #define SECYR (SECDAY * 365) -#define leapyear(y) (((y)%4)==0 && ((y)%100)!=0 || ((y)%400) == 0) +#define leapyear(y) ((((y)%4)==0 && ((y)%100)!=0) || ((y)%400) == 0) #define range_test(n, l, h) ((n) < (l) || (n) > (h)) #define days_in_year(a) (leapyear(a) ? 366 : 365) #define days_in_month(a) (month_days[(a) - 1]) -- cgit v1.2.3