From patchwork Fri Sep 16 21:38:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam James X-Patchwork-Id: 12978852 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 C590BECAAD8 for ; Fri, 16 Sep 2022 21:38:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229929AbiIPVic (ORCPT ); Fri, 16 Sep 2022 17:38:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229905AbiIPVib (ORCPT ); Fri, 16 Sep 2022 17:38:31 -0400 Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97116AB41F for ; Fri, 16 Sep 2022 14:38:29 -0700 (PDT) From: Sam James To: Steve Dickson , linux-nfs@vger.kernel.org Cc: Sam James Subject: [PATCH] Fix more function prototypes Date: Fri, 16 Sep 2022 22:38:09 +0100 Message-Id: <20220916213809.2777820-1-sam@gentoo.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 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 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }