Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/arch/powerpc64/gen fix lint.



details:   https://anonhg.NetBSD.org/src/rev/6371c5e949a9
branches:  trunk
changeset: 782873:6371c5e949a9
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Nov 24 15:20:58 2012 +0000

description:
fix lint.

diffstat:

 lib/libc/arch/powerpc64/gen/_lwp.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 9cc24a35a928 -r 6371c5e949a9 lib/libc/arch/powerpc64/gen/_lwp.c
--- a/lib/libc/arch/powerpc64/gen/_lwp.c        Sat Nov 24 15:16:52 2012 +0000
+++ b/lib/libc/arch/powerpc64/gen/_lwp.c        Sat Nov 24 15:20:58 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: _lwp.c,v 1.2 2006/07/05 18:05:45 ross Exp $    */
+/*     $NetBSD: _lwp.c,v 1.3 2012/11/24 15:20:58 christos Exp $        */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: _lwp.c,v 1.2 2006/07/05 18:05:45 ross Exp $");
+__RCSID("$NetBSD: _lwp.c,v 1.3 2012/11/24 15:20:58 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -46,6 +46,7 @@
 #include <lwp.h>
 #include <stdlib.h>
 
+/*ARGSUSED*/
 void
 _lwp_makecontext(ucontext_t *u, void (*start)(void *), void *arg,
        void *private, caddr_t stack_base, size_t stack_size)
@@ -58,7 +59,7 @@
        u->uc_stack.ss_sp = stack_base;
        u->uc_stack.ss_size = stack_size;
 
-       sp = (void **) (stack_base + stack_size);
+       sp = (void *)(stack_base + stack_size);
 
        u->uc_mcontext.__gregs[3] = (__greg_t) arg;             /* arg1 */
        u->uc_mcontext.__gregs[1] = ((__greg_t) sp) - 112;      /* stack */



Home | Main Index | Thread Index | Old Index