Module Name: src
Committed By: skrll
Date: Thu Sep 27 09:56:21 UTC 2012
Modified Files:
src/tests/lib/libc/sys: t_swapcontext.c
Log Message:
Simplify
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/sys/t_swapcontext.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/lib/libc/sys/t_swapcontext.c
diff -u src/tests/lib/libc/sys/t_swapcontext.c:1.1 src/tests/lib/libc/sys/t_swapcontext.c:1.2
--- src/tests/lib/libc/sys/t_swapcontext.c:1.1 Wed Sep 12 02:00:55 2012
+++ src/tests/lib/libc/sys/t_swapcontext.c Thu Sep 27 09:56:21 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: t_swapcontext.c,v 1.1 2012/09/12 02:00:55 manu Exp $ */
+/* $NetBSD: t_swapcontext.c,v 1.2 2012/09/27 09:56:21 skrll Exp $ */
/*
* Copyright (c) 2012 Emmanuel Dreyfus. All rights reserved.
@@ -89,7 +89,7 @@ mainfunc(void)
nctx.uc_flags &= ~_UC_TLSBASE;
#endif /* _UC_TLSBASE */
- makecontext(&nctx, (void *)*swapfunc, 0);
+ makecontext(&nctx, swapfunc, 0);
_lwp_setprivate(&val2);
otls = _lwp_getprivate();