Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libpthread swapfunc() is not passed to pthread_cre...



details:   https://anonhg.NetBSD.org/src/rev/0bffa654030c
branches:  trunk
changeset: 830175:0bffa654030c
user:      uwe <uwe%NetBSD.org@localhost>
date:      Tue Feb 27 20:31:35 2018 +0000

description:
swapfunc() is not passed to pthread_create, there's no need for it to
have any arguments.

diffstat:

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

diffs (20 lines):

diff -r a2981b0b10a2 -r 0bffa654030c tests/lib/libpthread/t_swapcontext.c
--- a/tests/lib/libpthread/t_swapcontext.c      Tue Feb 27 20:24:50 2018 +0000
+++ b/tests/lib/libpthread/t_swapcontext.c      Tue Feb 27 20:31:35 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_swapcontext.c,v 1.5 2018/02/27 20:24:50 uwe Exp $ */
+/* $NetBSD: t_swapcontext.c,v 1.6 2018/02/27 20:31:35 uwe Exp $ */
 
 /*
  * Copyright (c) 2012 Emmanuel Dreyfus. All rights reserved.
@@ -49,9 +49,8 @@
 void *nself;
 int val1, val2;
 
-/* ARGSUSED0 */
 static void
-swapfunc(void *arg)
+swapfunc(void)
 {
        /*
         * If the test fails, we are very likely to crash



Home | Main Index | Thread Index | Old Index