From nobody Mon Dec 20 09:52:50 2021 X-Original-To: dev-commits-src-all@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 1EF9F18EBB25; Mon, 20 Dec 2021 09:52:51 +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 4JHZdZ67y8z3qkc; Mon, 20 Dec 2021 09:52:50 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 B39C514171; Mon, 20 Dec 2021 09:52:50 +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 1BK9qoXU006884; Mon, 20 Dec 2021 09:52:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BK9qo8v006883; Mon, 20 Dec 2021 09:52:50 GMT (envelope-from git) Date: Mon, 20 Dec 2021 09:52:50 GMT Message-Id: <202112200952.1BK9qo8v006883@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: 46aec7fae47e - main - tests/libalias: Make inline functions static inline List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 46aec7fae47ed46368f95338741b4daffa5cbc94 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639993970; 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=XtDdr6KvUVHMyzulyUV25YCxQCKkabsLUFwIr4iAgi8=; b=yvaZG7R63Gp3M87xSeSj0wMFIWk0o1b5y1CsRh2LbWk2miNxaBg4K+MPsz8vdx0tfRTOIa LzMsWhYi13YE2wt1IQivo6LnXP8SijLRZ27A2ns/muOu+E5cWcojSKJZrJ0lTU6DF2bz3r kintiV0pd7w+sVByMmUpOz+YIyFg4RxxYnVNI3sdW3UgZbnHhTgZ8BWJhJaBux+mfrfrGL V70dMtkEZQdWhlXAHRNQ9ZQsCBQfvQe2tHKuuBxemx/hbNConjePWa4rAI4MBBinwVT0RS o2MDDbPazdHgVAyA7GrIZJkwuH6LHT6cM6ikaXduAfpJoMWWYE6ULi1M13iSng== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639993970; a=rsa-sha256; cv=none; b=Uu5cyxwpzrTsLqxu3R+1Uq90dX1HVnaGAJkudL0vAMvM+n6iQ7Vz204rZs4Beh/KtlTV9h /KCKCXS3xKtfqovO0MFxcW1ieM/JFLsZ6IWFGUSsyfPDzOy336VZMOBr3Eh0/ma+1mR5L5 U/7FFu6okEIK+cnbtugXKqCBx8yjXKssE0+LlX43vnIPAy9/MDi4XnL6a228yDfqJD06ku XrOZF1LigpzAdEeh0GCdzlCXBH2uJNIuVRhjTe247Sp71kiNikxu7WifT1H5oBSXzK0zNM 5Rrdd3A/oPcAEGq5rTpkbIwIgyMoZNWQZlzHMFiBREb+mq6G4PDPpAGeVA9qnw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=46aec7fae47ed46368f95338741b4daffa5cbc94 commit 46aec7fae47ed46368f95338741b4daffa5cbc94 Author: Dimitry Andric AuthorDate: 2021-12-20 09:52:02 +0000 Commit: Dimitry Andric CommitDate: 2021-12-20 09:52:25 +0000 tests/libalias: Make inline functions static inline In C, plain inline functions should never be used: they should be declared either static inline or extern inline. In this case, they are clearly meant to be static inline. MFC after: 3 days --- tests/sys/netinet/libalias/util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/sys/netinet/libalias/util.h b/tests/sys/netinet/libalias/util.h index 81d71049b57f..fcec225af658 100644 --- a/tests/sys/netinet/libalias/util.h +++ b/tests/sys/netinet/libalias/util.h @@ -48,7 +48,7 @@ void hexdump(void *p, size_t len); struct ip * ip_packet(u_char protocol, size_t len); struct udphdr * set_udp(struct ip *p, u_short sport, u_short dport); -inline int +static inline int addr_eq(struct in_addr a, struct in_addr b) { return a.s_addr == b.s_addr; @@ -56,7 +56,7 @@ addr_eq(struct in_addr a, struct in_addr b) #define a2h(a) ntohl(a.s_addr) -inline int +static inline int rand_range(int min, int max) { return min + rand()%(max - min);