summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/stand/libsa/clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/mvme88k/stand/libsa/clock.c')
-rw-r--r--sys/arch/mvme88k/stand/libsa/clock.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/arch/mvme88k/stand/libsa/clock.c b/sys/arch/mvme88k/stand/libsa/clock.c
index 1612654819f..3aa678f3a49 100644
--- a/sys/arch/mvme88k/stand/libsa/clock.c
+++ b/sys/arch/mvme88k/stand/libsa/clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clock.c,v 1.4 2006/05/16 22:52:26 miod Exp $ */
+/* $OpenBSD: clock.c,v 1.5 2008/03/31 22:11:37 miod Exp $ */
#include <sys/types.h>
@@ -7,18 +7,9 @@
#include "stand.h"
#include "libsa.h"
-/*
- * BCD to decimal and decimal to BCD.
- */
-#define FROMBCD(x) (((x) >> 4) * 10 + ((x) & 0xf))
-#define TOBCD(x) (((x) / 10 * 16) + ((x) % 10))
-
-#define SECDAY (24 * 60 * 60)
-#define SECYR (SECDAY * 365)
#define LEAPYEAR(y) (((y) & 3) == 0)
#define YEAR0 68
-
/*
* This code is defunct after 2068.
* Will Unix still be here then??