diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-07-17 04:21:31 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-07-17 04:21:31 +0000 |
commit | b6f5e31d88bbde5aad65cd2df3e41851bd6a813e (patch) | |
tree | e5cb10afa9d27491584f8dedcac78ac2db773fe5 /sys/arch/aviion | |
parent | d659fd7d8b8c4a47fcabe16b76f0221c7bf05757 (diff) |
Cope with clock_subr.c changes.
Diffstat (limited to 'sys/arch/aviion')
-rw-r--r-- | sys/arch/aviion/dev/nvram.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/arch/aviion/dev/nvram.c b/sys/arch/aviion/dev/nvram.c index 23990e6320a..71ddcb3dea3 100644 --- a/sys/arch/aviion/dev/nvram.c +++ b/sys/arch/aviion/dev/nvram.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nvram.c,v 1.3 2006/06/19 21:10:19 miod Exp $ */ +/* $OpenBSD: nvram.c,v 1.4 2006/07/17 04:21:30 miod Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -150,14 +150,6 @@ microtime(tvp) splx(s); } -/* - * 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) /* @@ -577,7 +569,6 @@ nvramwrite(dev_t dev, struct uio *uio, int flags) */ if ((*dest & 0xff) != *src) rc = EROFS; - } } dest++; src++; |