From 0aef5f8c7e700cf100b8881d197c6ecf82ee01b8 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Thu, 24 Jun 1999 00:10:57 +0000 Subject: manualy assign structures --- sys/arch/hppa/dev/clock.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/arch/hppa') 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); -- cgit v1.2.3