diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-05-02 06:44:48 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-05-02 06:44:48 +0000 |
commit | a1ab0133973a053ec8cb7034b5f525c772d2c6d6 (patch) | |
tree | 348052b6165a33d50f05b52e0989ec9095b81452 /sys/arch/amiga/dev/rtc.h | |
parent | 357d854e83a35ee1bdb134546c9f0e8b086a8833 (diff) |
Sync with NetBSD 9600430. The port has gone over a major -Wall treat
Diffstat (limited to 'sys/arch/amiga/dev/rtc.h')
-rw-r--r-- | sys/arch/amiga/dev/rtc.h | 5 |
1 files changed, 3 insertions, 2 deletions
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]) |