From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14057 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Bobby Bingham Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH] fix signature of function accepted by makecontext Date: Fri, 5 Apr 2019 12:26:17 -0500 Message-ID: <20190405172617.16118-1-koorogi@koorogi.info> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="128939"; mail-complaints-to="usenet@blaine.gmane.org" To: musl@lists.openwall.com Original-X-From: musl-return-14073-gllmg-musl=m.gmane.org@lists.openwall.com Fri Apr 05 19:26:38 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1hCSbs-000XPt-Dx for gllmg-musl@m.gmane.org; Fri, 05 Apr 2019 19:26:36 +0200 Original-Received: (qmail 20356 invoked by uid 550); 5 Apr 2019 17:26:32 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 20322 invoked from network); 5 Apr 2019 17:26:31 -0000 X-Mailer: git-send-email 2.21.0 Xref: news.gmane.org gmane.linux.lib.musl.general:14057 Archived-At: 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