Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libpthread Drop unnecessary cast to makecontext() ...



details:   https://anonhg.NetBSD.org/src/rev/a2981b0b10a2
branches:  trunk
changeset: 830174:a2981b0b10a2
user:      uwe <uwe%NetBSD.org@localhost>
date:      Tue Feb 27 20:24:50 2018 +0000

description:
Drop unnecessary cast to makecontext() argument.

diffstat:

 tests/lib/libpthread/t_swapcontext.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 3e43af5751f4 -r a2981b0b10a2 tests/lib/libpthread/t_swapcontext.c
--- a/tests/lib/libpthread/t_swapcontext.c      Tue Feb 27 20:22:31 2018 +0000
+++ b/tests/lib/libpthread/t_swapcontext.c      Tue Feb 27 20:24:50 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_swapcontext.c,v 1.4 2018/02/27 20:22:31 uwe Exp $ */
+/* $NetBSD: t_swapcontext.c,v 1.5 2018/02/27 20:24:50 uwe Exp $ */
 
 /*
  * Copyright (c) 2012 Emmanuel Dreyfus. All rights reserved.
@@ -76,7 +76,7 @@
        nctx.uc_stack.ss_sp = stack;
        nctx.uc_stack.ss_size = sizeof(stack);
 
-       makecontext(&nctx, (void *)*swapfunc, 0);
+       makecontext(&nctx, swapfunc, 0);
 
        oself = (void *)pthread_self();
        printf("before swapcontext self = %p\n", oself);



Home | Main Index | Thread Index | Old Index