From nobody Mon Apr 24 15:54:10 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q4qSL5S0lz471Ks; Mon, 24 Apr 2023 15:54:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q4qSL4plQz40Qq; Mon, 24 Apr 2023 15:54:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682351650; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QGTl+JrEZwy/FxQbCwSoz99lPeZe0Fah6oJoAFm0c9Y=; b=E3hnoYCWOcoyX68iO+YeMJFQuQTeizqfmKijBhD4sLr8ZQNAGpXTrGWfN8o/Icf1v9Zalu 8EgBwK/w8k8kM7PAe0YeJto30oOCJu3FKqw5Gsp9Sz4b3DPtwA6cFme/BZUXxfG8U0nSZz kDKIM4il8Di07S4jxg8FQwAWe9pkEI8dsIJCOdyslC391dXKVgVev9g4B56c27a1LEewQi DXgJuBge1HVujTfvvyFIOcMOVjYJxN7QgvYwK081k09aAZI0P8MD54VS+ymkDF562dyr9H 1idjReq/91sDikaYSJS8U5BauGu+XnCx3R6RMaeT+aTB5aa702VJ3oYp0oP79A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682351650; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QGTl+JrEZwy/FxQbCwSoz99lPeZe0Fah6oJoAFm0c9Y=; b=HzZoz53XPO1JilElmR9ZDv8YLsHSE357ccp4/fU1EhXfXriYV1Ql+oJkX70tq9/7EN+Amz ugD6Oztvjcdzc0Zo/nsP84/iOvNFGtQHFgbUC0MY6oDO0+eSMQsq9xqpDX9jSvWx2p0Vaa a3N5bLDnm8LVU5VpcFuUgEJAUgXthmMmXJ+CIxY4GBb62KqX6wTGAYqnvJ74E04f5N72qB sD5ufqvzErgvY0X/ODOpcdJ2h+aDm7fitEt1Qc0Rg3myQyNCFoBVkOh4yqAWJrtr3KuP75 8OAfCBuiYh4dDIirVxvdCvIQuhulPcgs67U8PiItX1SUU/saALl+fmV/i8SRzw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682351650; a=rsa-sha256; cv=none; b=ZkXhLeYUYJWfVigGLRWWuPue7txNfrkXEx2NFbYwShWqEU1RwNAtuBeM6Ay0WfU11tPTbp 0Dp1ILfRpLA1I0+D7FI4yjBBj+gPi5NSF0f1oNzGlTV21ARN+88/AVOcq6CtVyui0DGFRL Y+1fqM3WXr9mREcMO/Z/MN8PE33on/KUxy8s5N/04pgvMfuU9ZViEQRSOzJwO6Uy5GHooD /yhnZSqD43zX4VUnaC9+o0q8hRitULnvg2jIgBxlu+xEZXLh3l7f5iQcOpljxh2uVkctoP 0yqi1WE0fL7tC0JDZgHCcfDcBkwoITPT/tCKpIERlw4n4Nq/fJkE6OcXL79uIQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q4qSL3sD1zX5k; Mon, 24 Apr 2023 15:54:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33OFsA83099952; Mon, 24 Apr 2023 15:54:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33OFsASW099951; Mon, 24 Apr 2023 15:54:10 GMT (envelope-from git) Date: Mon, 24 Apr 2023 15:54:10 GMT Message-Id: <202304241554.33OFsASW099951@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 4b75b42ddb8b - main - ndp: Use valid prototypes for function declarations with no arguments. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4b75b42ddb8b48c8174bfdb361e7ad1e452e2fe8 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=4b75b42ddb8b48c8174bfdb361e7ad1e452e2fe8 commit 4b75b42ddb8b48c8174bfdb361e7ad1e452e2fe8 Author: John Baldwin AuthorDate: 2023-04-24 15:53:49 +0000 Commit: John Baldwin CommitDate: 2023-04-24 15:53:49 +0000 ndp: Use valid prototypes for function declarations with no arguments. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39729 --- usr.sbin/ndp/ndp.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c index 5097c156e624..eaf652507e09 100644 --- a/usr.sbin/ndp/ndp.c +++ b/usr.sbin/ndp/ndp.c @@ -360,7 +360,7 @@ file(char *name) } static void -getsocket() +getsocket(void) { if (s < 0) { s = socket(PF_ROUTE, SOCK_RAW, 0); @@ -854,7 +854,7 @@ ndp_ether_aton(char *a, u_char *n) } static void -usage() +usage(void) { printf("usage: ndp [-nt] hostname\n"); printf(" ndp [-nt] -a | -c | -p | -r | -H | -P | -R\n"); @@ -1096,7 +1096,7 @@ ifinfo(char *ifname, int argc, char **argv) #endif static void -rtrlist() +rtrlist(void) { int mib[] = { CTL_NET, PF_INET6, IPPROTO_ICMPV6, ICMPV6CTL_ND6_DRLIST }; char *buf; @@ -1178,7 +1178,7 @@ rtrlist() } static void -plist() +plist(void) { int mib[] = { CTL_NET, PF_INET6, IPPROTO_ICMPV6, ICMPV6CTL_ND6_PRLIST }; char *buf; @@ -1330,7 +1330,7 @@ plist() } static void -pfx_flush() +pfx_flush(void) { char dummyif[IFNAMSIZ+8]; int sock; @@ -1345,7 +1345,7 @@ pfx_flush() } static void -rtr_flush() +rtr_flush(void) { char dummyif[IFNAMSIZ+8]; int sock; @@ -1360,7 +1360,7 @@ rtr_flush() } static void -harmonize_rtr() +harmonize_rtr(void) { char dummyif[IFNAMSIZ+8]; int sock; @@ -1402,7 +1402,7 @@ setdefif(char *ifname) } static void -getdefif() +getdefif(void) { struct in6_ndifreq ndifreq; char ifname[IFNAMSIZ+8];