From patchwork Thu Mar 4 19:45:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1447473 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=K+MBNAVH; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Ds1cv1NMfz9sRR for ; Fri, 5 Mar 2021 06:48:15 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 688E1386F46E; Thu, 4 Mar 2021 19:48:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 688E1386F46E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1614887291; bh=1hQkoDfbSIdVgOU/Sd2EwzsscbUsImiOzy+OECzLLBM=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=K+MBNAVH77tbqH2DWZKjKIb1PMdjCsxnmAwMIrZhAgBG2Ym5ZKe9/O+usyR8OXzCS uc9hWsvOpiv0T1pda6u6rc7UoDRMxIQptxIJa1rpfOBELnjn42Vb3iEatL3eE+OwGR qzTVJohj24pJBN00w6PLUY1bqr03aEwFFrBSabEA= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by sourceware.org (Postfix) with ESMTPS id 9D6053854814 for ; Thu, 4 Mar 2021 19:48:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9D6053854814 Received: by mail-wm1-x32e.google.com with SMTP id u187so9102439wmg.4 for ; Thu, 04 Mar 2021 11:48:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1hQkoDfbSIdVgOU/Sd2EwzsscbUsImiOzy+OECzLLBM=; b=iom5GgA4rQCxGzrqSS+whxGM/S+DpAzKnJAwvg8r5m9vRe+nuUxchSeQqdbGFTfV0x mJL1WPmngrJCwQMT11jGx6U5bNvTzIcP//UDPNXJJrhmyiHpG7vA19lKAA644ly9gm0v KuQWqOMgr5sKJ8p0eN04w1MH2BXH1utc/K/emkMlllRStnBe61JjxohFTubaMQW4xxPO Y2VkQ0QrgT44Ax+SmlZ/cQgyjmboHXqg6NvnGKZpNghADwZ5IXbo/VUd9uasZ3zTGBaI WbfnXXZnj9qLnKr5BezLUcCsI/mipnl40srJ8U+g2XJ9gNdISlEr3hgrm5J4zLJVSO/N ZrIg== X-Gm-Message-State: AOAM532c19NSi42p3bfEdxQVoQasLnqNBWMLnI+IubnDz85YmlSaJvkN gMiOMHRCFx34fjHAcuCv6jw= X-Google-Smtp-Source: ABdhPJwvPmYaRCDgobJSGCvZhotznEQvDp0OTDBKOT1ZAeGQRWLF8vaYDNhdX264mN2ZWF2rGha0zw== X-Received: by 2002:a7b:cbcd:: with SMTP id n13mr5442836wmi.112.1614887284660; Thu, 04 Mar 2021 11:48:04 -0800 (PST) Received: from localhost.localdomain ([170.253.51.130]) by smtp.googlemail.com with ESMTPSA id z188sm763787wme.32.2021.03.04.11.48.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Mar 2021 11:48:04 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH] makecontext.3: Fix function declarator with empty parentheses. Date: Thu, 4 Mar 2021 20:45:35 +0100 Message-Id: <20210304194534.130735-1-alx.manpages@gmail.com> X-Mailer: git-send-email 2.30.1.721.g45526154a5 MIME-Version: 1.0 X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Alejandro Colomar via Libc-alpha From: Alejandro Colomar Reply-To: Alejandro Colomar Cc: Alejandro Colomar , linux-man@vger.kernel.org, libc-alpha@sourceware.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" glibc uses 'void (*f)(void)' for makecontext()'s second parameter. C11 marked function declarators with empty parentheses as obsolescent: > 6.11.6 Function declarators > 1 The use of function declarators with empty parentheses (not > prototype-format parametertype declarators) is an obsolescent > feature. Let's use the correct syntax by explicitly using '(void)'. .../glibc$ grep_glibc_prototype makecontext stdlib/ucontext.h:51: extern void makecontext (ucontext_t *__ucp, void (*__func) (void), int __argc, ...) __THROW; .../glibc$ Signed-off-by: Alejandro Colomar --- man3/makecontext.3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/man3/makecontext.3 b/man3/makecontext.3 index 83720dd2c..ac9afcf69 100644 --- a/man3/makecontext.3 +++ b/man3/makecontext.3 @@ -32,7 +32,8 @@ makecontext, swapcontext \- manipulate user context .nf .B #include .PP -.BI "void makecontext(ucontext_t *" ucp ", void (*" func ")(), int " argc ", ...);" +.BI "void makecontext(ucontext_t *" ucp ", void (*" func ")(void), int " argc \ +", ...);" .BI "int swapcontext(ucontext_t *" oucp ", const ucontext_t *" ucp ); .fi .SH DESCRIPTION