From patchwork Fri Mar 8 19:55:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Gunthorpe X-Patchwork-Id: 10845363 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CE69B17E9 for ; Fri, 8 Mar 2019 19:55:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC0562DE17 for ; Fri, 8 Mar 2019 19:55:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B043C2FE96; Fri, 8 Mar 2019 19:55:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 554E92FE1E for ; Fri, 8 Mar 2019 19:55:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726414AbfCHTz0 (ORCPT ); Fri, 8 Mar 2019 14:55:26 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:40560 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726613AbfCHTz0 (ORCPT ); Fri, 8 Mar 2019 14:55:26 -0500 Received: by mail-qt1-f195.google.com with SMTP id f11so5333167qti.7 for ; Fri, 08 Mar 2019 11:55:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zlG/Ylg+yKMLcIJ5iCccVJJT3wu74q9X3CN1WpMeyUo=; b=R5tWZEfrBcN0PiR7y/KbT52KHEguMF5ZZ1AfHY7Q+DJ8vxqoegXT6QQ/j0LWbWHPv2 8f6i8TemEDLOfwV1Qm7QD6EJB4WmdafVSdO7fMYlEHCgP9UmcgKGfoKmvxVjl6hrTPyY OwZXqxn1lqoE6f5QBosLqZyS8hqVJ7+rrGM9TWvgHPawmcJYWhYkO9ra45bD+8rK6RxK 6JwNEAci2Tp0k18k0yAbZM37UzDPUKTncPvPytFmDopGPov5SleA2o68cNGugizfwE1x 7s7NfXY9HR0QW2zAzEMFTH5vDLYOEovHJ2b55Hz/IpOPMTerL40e3LowbLzJyBfnwsE7 xq8g== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=zlG/Ylg+yKMLcIJ5iCccVJJT3wu74q9X3CN1WpMeyUo=; b=O+7AguLTAOlR8IDEjDL3+naBG3lPUPOknyZI5own9CO/pCJLcJsaNU5RXtHDfsofAb oGxxYcnYW+BHyAUEYU+eJkCcZZTP44s0rYSB+ii+h9Jgt+Zz3KtNioX3KkeHNTIYwF4t 30JOGa57ssC6asRaLfrRoo6HRys8mjOLYHFfqKziu4kGBticzq7IOeQish0PtgNeQ9/o O2gCh6jqf7Ba2F4kJfB6ZdJNZ29CdlZfFlP4E3j5twWPSZUiuyddXTQcJVQtoP002Bkq IWc6BagiGYgZrd2QCIC5taxZKcHaGQoV5kXGEM/d8mp68Eln2YQcmD9cJEcWifkEm8sO /VQg== X-Gm-Message-State: APjAAAWsqA7YkWJSmYWugQ2sE6/BaT6uwJ4Ikpcppm3fLhzd4BI6muNX VJd5EL4262uUo7lF67hVnWoZyOKyxCo1pw== X-Google-Smtp-Source: APXvYqynynq83Y/RsUupz61uR6QcO/ANICR7CAOogvWZaVVogaOUyJsVRvA6UITGNvIiusPWokBLMQ== X-Received: by 2002:a0c:e703:: with SMTP id d3mr16829935qvn.47.1552074925120; Fri, 08 Mar 2019 11:55:25 -0800 (PST) Received: from ziepe.ca ([24.137.65.181]) by smtp.gmail.com with ESMTPSA id f126sm6668617qka.14.2019.03.08.11.55.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Mar 2019 11:55:23 -0800 (PST) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1h2LaU-0000ve-E6; Fri, 08 Mar 2019 15:55:22 -0400 From: Jason Gunthorpe To: linux-rdma@vger.kernel.org Cc: Jason Gunthorpe Subject: [PATCH ibdiags 07/14] ibdiag: Use modern C function declarations Date: Fri, 8 Mar 2019 15:55:08 -0400 Message-Id: <20190308195515.3408-8-jgg@ziepe.ca> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190308195515.3408-1-jgg@ziepe.ca> References: <20190308195515.3408-1-jgg@ziepe.ca> MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jason Gunthorpe () is an archaic form, use (void) Signed-off-by: Jason Gunthorpe --- include/ibdiag_common.h | 2 +- src/ibdiag_common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ibdiag_common.h b/include/ibdiag_common.h index 20449cf8a3d0fd..a20408e582eb2c 100644 --- a/include/ibdiag_common.h +++ b/include/ibdiag_common.h @@ -138,7 +138,7 @@ extern int ibdiag_process_opts(int argc, char *const argv[], void *context, char *optarg), const char *usage_args, const char *usage_examples[]); -extern void ibdiag_show_usage(); +extern void ibdiag_show_usage(void); extern void ibexit(const char *fn, const char *msg, ...); /* convert counter values to a float with a unit specifier returned (using diff --git a/src/ibdiag_common.c b/src/ibdiag_common.c index 867b5d0c5693e1..977d8e1d05d394 100644 --- a/src/ibdiag_common.c +++ b/src/ibdiag_common.c @@ -174,7 +174,7 @@ static void read_ibdiag_config(const char *file) } -void ibdiag_show_usage() +void ibdiag_show_usage(void) { struct option *o = long_opts; int n;