Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp32190rwn; Fri, 16 Sep 2022 14:48:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM469TBnS+8N8nYlQOnVpDThV+lRtNRsftosEsfEQTWNeUQmoGJMDcihfpx41BZ1XYRIgddu X-Received: by 2002:a17:907:7209:b0:778:e86e:568 with SMTP id dr9-20020a170907720900b00778e86e0568mr4974592ejc.659.1663364937260; Fri, 16 Sep 2022 14:48:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663364937; cv=none; d=google.com; s=arc-20160816; b=axJiodAkV1yDiXMeKjf+WhU1/0D9SsIKsYhLTx5YqyCwdrSdrGBhH1p7N8OghdrgHW M/z0BK9uL0m/OcO697xT+Qva1y+WE4mjQC4QoSmL//Ew34/Bho8yK8YUHm9kWWHh8YcO 7mIXiyYwTVhLz7rasseZnkeb58Tt1FU5YkVVTvg558QAIABldRRMR/Mge7RtrvAOaeuT +W4zLKtNqL+nJoNEjJkTVIHUpwBVF1MsHevVrtczUjqyYVCzXpjpuip/KtVxRDfgay44 gWtXipBlbN7NLHt7d/9Cx3g/sbXi/KIavoK83mhjzkWSFeUANwuUkSBv86FucURmvWHE DyyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=SOOvbw0s5uK9NmgEUYQMKwXQYFxpQCoGXkKmK1NIQPc=; b=TAjbISMRT2eKgvmZ7k1/fP2xbst30rnka35GHVlAIqaqCGoOScuWuKNm2i27NVIi6a Qjf6EqnKqIYJ6Y3TdMgPcuBllu0QLiWvj/D2HkORRnf7B45G0sdB4Ld7zQvAkjTifK+k QHtrOC+F+5BoKYTPBuhmbQ2LC0aJFnJ30NtE7ScFyE1SGV5MXCzQ6VEC6uAtsJUBFdJq IjABLSy/rdN3bLC+klfyJiqubGVhpgWAmQMSV8OJ4Mm1kPmKAKmA6pj8oiOdgcuWg3ju j/1M1jh9yH60sup1mcmi//vlI38Puvn9FdDGuyoVtNzbwzu2iXXC0JYs3fgdEHeHXtGv WRKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z2-20020a05640240c200b0045181429f39si3828782edb.55.2022.09.16.14.48.30; Fri, 16 Sep 2022 14:48:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229450AbiIPVnH (ORCPT + 99 others); Fri, 16 Sep 2022 17:43:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229675AbiIPVnF (ORCPT ); Fri, 16 Sep 2022 17:43:05 -0400 Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 855F33AB36 for ; Fri, 16 Sep 2022 14:43:04 -0700 (PDT) From: Sam James To: Steve Dickson , linux-nfs@vger.kernel.org Cc: Sam James Subject: [PATCH v2] Fix more function prototypes Date: Fri, 16 Sep 2022 22:43:00 +0100 Message-Id: <20220916214300.2820117-1-sam@gentoo.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org ``` regex.c:545:43: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] struct trans_func *libnfsidmap_plugin_init() ^ void 1 error generated. ``` See: 167f2336b06e1bcbf26f45f2ddc4a535fed4d393 Signed-off-by: Sam James --- support/nfsidmap/regex.c | 2 +- utils/idmapd/idmapd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/support/nfsidmap/regex.c b/support/nfsidmap/regex.c index 958b4ac8..8424179f 100644 --- a/support/nfsidmap/regex.c +++ b/support/nfsidmap/regex.c @@ -542,7 +542,7 @@ struct trans_func regex_trans = { .gss_princ_to_grouplist = regex_gss_princ_to_grouplist, }; -struct trans_func *libnfsidmap_plugin_init() +struct trans_func *libnfsidmap_plugin_init(void) { return (®ex_trans); } diff --git a/utils/idmapd/idmapd.c b/utils/idmapd/idmapd.c index e79c124d..cd9a965f 100644 --- a/utils/idmapd/idmapd.c +++ b/utils/idmapd/idmapd.c @@ -867,7 +867,7 @@ nfsdreopen_one(struct idmap_client *ic) } static void -nfsdreopen() +nfsdreopen(void) { nfsdreopen_one(&nfsd_ic[IC_NAMEID]); nfsdreopen_one(&nfsd_ic[IC_IDNAME]); -- 2.37.3