From nobody Mon Dec 27 10:20:40 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 CCB6D190747F; Mon, 27 Dec 2021 10:20:40 +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 4JMtwS3qDvz3F61; Mon, 27 Dec 2021 10:20:40 +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 639801C39B; Mon, 27 Dec 2021 10:20:40 +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 1BRAKeJ7027533; Mon, 27 Dec 2021 10:20:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BRAKecS027532; Mon, 27 Dec 2021 10:20:40 GMT (envelope-from git) Date: Mon, 27 Dec 2021 10:20:40 GMT Message-Id: <202112271020.1BRAKecS027532@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: cca67690ace6 - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: cca67690ace682e9aeab509b17213e44d2d4f9c6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640600440; 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=jazYaQ32H6ZjTz4FV8aCviBqBMbgtYALyIvxrVMn/LE=; b=mCoCa2nmmyv1sqfGJN+94UcJIP3+QXmLANSLVn236JZ1cItT/Ns31zqUjEqfGdZjYlgLmI NDB8Qh1VTHGf8SAj1frPy/nCX8qVJHRWCCRJRB3Yu0Oq/vDT7M6GnrWS0ACDzHPOn7c8wv K1RY2GkWMP2T9Anntym2sFCx+swBcMiHthrOGIHkcL5zmwR5zWdoj8Bpcp6TX/6+o+kykh WDc0MkWRUgE/q+NMUlJt2T5hBSVjoxUwOX9xg97ALQTUekqknGUDV7kHTCWBW7oTL0f1a/ T8Mk3cSoI8TvBn/Xb7SULSueXHtuTZ92YaUxXJ1IzGL5fTzCmOoFRPUH0uwZEA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640600440; a=rsa-sha256; cv=none; b=khkwDTTDfwMLNiPMNlkQU8S3zKBvWqzROOVqYgDhaFlhUHTrb7PsxcvLcDYsCfZkgaWqP0 Tu+sfsesIX5NF38yRJifrmLlVo3+eaCA7mgVO28h1Ec8IUKPgxHnWslUoTTJDrGU5nQoDq +LkGXmR6hJfYtFZhKsDmACvijUORKjG1JCio+Trss1ERVgiialb104oWDwFU0X0ceVfAhs J+QYxEfPPQr2k7viqW4qi1MMWKFrILUbDvMj05Np5+bTJkejy+pf4QUOnybKXDFsK0kpUM 63AWz6Uv+eWtBaWGTNMHaf1BA4st1Tf+YsShLEUISEAzS29B8rUI+HVPx6Uh1w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=cca67690ace682e9aeab509b17213e44d2d4f9c6 commit cca67690ace682e9aeab509b17213e44d2d4f9c6 Author: Dimitry Andric AuthorDate: 2021-12-20 09:52:02 +0000 Commit: Dimitry Andric CommitDate: 2021-12-27 10:19:31 +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 (cherry picked from commit 46aec7fae47ed46368f95338741b4daffa5cbc94) --- 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);