diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1999-06-24 00:10:57 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1999-06-24 00:10:57 +0000 |
commit | 0aef5f8c7e700cf100b8881d197c6ecf82ee01b8 (patch) | |
tree | 13e3597fc4d2e06d6bd6afe62231bcef13df85b2 /sys/arch/hppa | |
parent | 747c0b3b7bedb5491a5def7d7d69d3089694a3ef (diff) |
manualy assign structures
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/dev/clock.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/hppa/dev/clock.c b/sys/arch/hppa/dev/clock.c index a124e70f83f..7a2f8040744 100644 --- a/sys/arch/hppa/dev/clock.c +++ b/sys/arch/hppa/dev/clock.c @@ -1,7 +1,7 @@ -/* $OpenBSD: clock.c,v 1.3 1999/06/12 17:47:08 mickey Exp $ */ +/* $OpenBSD: clock.c,v 1.4 1999/06/24 00:10:56 mickey Exp $ */ /* - * Copyright (c) 1998 Michael Shalayeff + * Copyright (c) 1998,1999 Michael Shalayeff * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -81,7 +81,8 @@ inittodr(t) pdc_call((iodcio_t)PAGE0->mem_pdc, 1, PDC_TOD, PDC_TOD_READ, &tod, 0, 0, 0, 0, 0); - time = *(struct timeval *)&tod; + time.tv_sec = tod.sec; + time.tv_usec = tod.usec; if ((long)time.tv_sec < 0) { time.tv_sec = SECYR * (1990 - 1970); |