summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand/libsa/time.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-04-18 07:40:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-04-18 07:40:04 +0000
commit888b63e1743ef4b4277b88169301e0b5c1445e16 (patch)
tree5b9d1c51879f3e1f909c17e6ec7c2f6050ac92e1 /sys/arch/i386/stand/libsa/time.c
parentc2ee71fae9cec63f4a94c921619dc28d1c5b5032 (diff)
i386 bootblocks that work for 2.3. A tale too long to tell
Diffstat (limited to 'sys/arch/i386/stand/libsa/time.c')
-rw-r--r--sys/arch/i386/stand/libsa/time.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/i386/stand/libsa/time.c b/sys/arch/i386/stand/libsa/time.c
index b5d1c49b020..cedc53249ea 100644
--- a/sys/arch/i386/stand/libsa/time.c
+++ b/sys/arch/i386/stand/libsa/time.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: time.c,v 1.10 1997/10/12 21:04:23 mickey Exp $ */
+/* $OpenBSD: time.c,v 1.11 1998/04/18 07:39:57 deraadt Exp $ */
/*
* Copyright (c) 1997 Michael Shalayeff
@@ -55,16 +55,16 @@ bcdtoint(c)
/*
* Quick compute of time in seconds since the Epoch
*/
+const u_short monthcount[] = {
+ 0, 0, 31, 59, 90, 120, 151, 181,
+ 212, 243, 273, 304, 334, 365
+};
static __inline time_t
compute(year, month, day, hour, min, sec)
int year;
u_int8_t month, day, hour, min, sec;
{
/* Number of days per month */
- static const u_short monthcount[] = {
- 0, 0, 31, 59, 90, 120, 151, 181,
- 212, 243, 273, 304, 334, 365
- };
register time_t tt;
/* Compute days */