mailing list of musl libc
 help / color / mirror / code / Atom feed
* [PATCH] fix signature of function accepted by makecontext
@ 2019-04-05 17:26 Bobby Bingham
  0 siblings, 0 replies; only message in thread
From: Bobby Bingham @ 2019-04-05 17:26 UTC (permalink / raw)
  To: musl

This parameter was incorrectly declared to be a pointer to a function
accepting zero parameters.  The intent of makecontext is that it is
possible to pass integer parameters to the function, so this should
have been a pointer to a function accepting an unspecified set of
parameters.
---
 include/ucontext.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/ucontext.h b/include/ucontext.h
index 3bb776ed..0f757125 100644
--- a/include/ucontext.h
+++ b/include/ucontext.h
@@ -15,7 +15,7 @@ extern "C" {
 struct __ucontext;
 
 int  getcontext(struct __ucontext *);
-void makecontext(struct __ucontext *, void (*)(void), int, ...);
+void makecontext(struct __ucontext *, void (*)(), int, ...);
 int  setcontext(const struct __ucontext *);
 int  swapcontext(struct __ucontext *, const struct __ucontext *);
 
-- 
2.21.0



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-04-05 17:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-05 17:26 [PATCH] fix signature of function accepted by makecontext Bobby Bingham

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).