From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4C76ECAAD8 for ; Fri, 16 Sep 2022 21:43:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229450AbiIPVnH (ORCPT ); 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 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