From: Alan Cox Date: Tue, 13 Sep 2016 22:41:43 +0000 (+0100) Subject: syscall_proc: note type punning we need to fix X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=3a9090e19bc60831ae7e09432263c6b3bc0892a3;p=FUZIX.git syscall_proc: note type punning we need to fix --- diff --git a/Kernel/syscall_proc.c b/Kernel/syscall_proc.c index 81028003..135d7219 100644 --- a/Kernel/syscall_proc.c +++ b/Kernel/syscall_proc.c @@ -314,6 +314,8 @@ arg_t _waitpid(void) /* Add in child's time info. It was stored on top */ /* of p_priority in the childs process table entry. */ + /* FIXME: make these a union so we don't do type + punning and break strict aliasing */ udata.u_cutime += ((clock_t *)&p->p_priority)[0]; udata.u_cstime += ((clock_t *)&p->p_priority)[1]; return retval;