From 1c0c346e1dfb9f83814cea152ef6bce1c75375d5 Mon Sep 17 00:00:00 2001 From: cjs Date: Sat, 28 Dec 1996 22:37:03 +0000 Subject: [PATCH] This recently stopped compiling due to a warning about const being dropped. This fix suggested by cgd. --- sys/compat/sunos/sunos_misc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/compat/sunos/sunos_misc.c b/sys/compat/sunos/sunos_misc.c index 7a87502ebf83..8734f33086b8 100644 --- a/sys/compat/sunos/sunos_misc.c +++ b/sys/compat/sunos/sunos_misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: sunos_misc.c,v 1.74 1996/10/13 01:16:19 christos Exp $ */ +/* $NetBSD: sunos_misc.c,v 1.75 1996/12/28 22:37:03 cjs Exp $ */ /* * Copyright (c) 1992, 1993 @@ -111,7 +111,7 @@ sunos_sys_stime(p, v, retval) struct sunos_sys_stime_args *uap = v; struct sys_settimeofday_args ap; caddr_t sg = stackgap_init(p->p_emul); - struct timeval tv; + struct timeval tv, *sgtvp; int error; error = copyin(SCARG(uap, tp), &tv.tv_sec, sizeof(tv.tv_sec)); @@ -119,10 +119,10 @@ sunos_sys_stime(p, v, retval) return error; tv.tv_usec = 0; - SCARG(&ap, tv) = stackgap_alloc(&sg, sizeof(struct timeval)); + SCARG(&ap, tv) = sgtvp = stackgap_alloc(&sg, sizeof(struct timeval)); SCARG(&ap, tzp) = NULL; - error = copyout(&tv, SCARG(&ap, tv), sizeof(struct timeval)); + error = copyout(&tv, sgtvp, sizeof(struct timeval)); if (error) return error;