From nobody Wed Dec 22 10:06:42 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 ABEB21906E35; Wed, 22 Dec 2021 10:06:49 +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 4JJprl46jBz4Z3h; Wed, 22 Dec 2021 10:06:47 +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 02B601B26E; Wed, 22 Dec 2021 10:06:43 +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 1BMA6gma093042; Wed, 22 Dec 2021 10:06:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BMA6g8u093041; Wed, 22 Dec 2021 10:06:42 GMT (envelope-from git) Date: Wed, 22 Dec 2021 10:06:42 GMT Message-Id: <202112221006.1BMA6g8u093041@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: 4f58c87fd294 - stable/12 - 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/12 X-Git-Reftype: branch X-Git-Commit: 4f58c87fd29411a10011fe677eaf78177dfe4cbf Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640167607; 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=ivbSSO0toPMH1QwQAoY3xrclQePV84g7cXFDHe2lBjw=; b=me7jJ3HWjkcG4DsFGBgGtuQxeg5yOTlOETokUTDCXiOuyvpBsOfjAx6BUZQArD/dehyjfA hJJzTmjCetkbfwsR0VIm8h/mHaatkt56pVdu0z/EORMAWbvlpoYQ3E23Sq6nA7peB4Vlif NSkFq2TCp/MB5WCoNqqsnc7RScN90sjVmbRsG3OJGz6oZu5OrwtdN4Dt2tYTFIRFBSeppc 0g2RJ8JkKVJLpjKxlRuaNTyRpv+P0AktyO/3eUPlx1jr5dnGVjliU9dA9iSlqBPn5PIO6D 4RmNJ13OPtJkI/85KhfpI63+aNG0w5CfzfMnOBPACzjXeoMywyZLb5JbdKtvow== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640167607; a=rsa-sha256; cv=none; b=mIk+ReeWAc7WZzCjOvQhtGtz5i7TO/UnCOKbWb85WITVwaCmTCWqv7orbeEIGF7SKDSLBp cqVkofehCMI7CL0EM4wEGZomPlhOh0e3JYaWfbKv0iZbKhFmJVzAgu8g3HiOYe8Q8QRmpk gQGNirU3xas5vEb/H1y2uEa5/FynZ2RFgwK6sx1ZD5DppLobR0k6EJGFnpIak7BUTP+Ikm fq8YOGXn3NMZ/CkNL0KzJxcW2OfkznG4bkSEKOWtw75lWQ3Pnhw7hIBScFLFeKR0RxEfdg iOmsBNMQeOC7+BcwQInHOFvdVF0uAfjZcga/MtSnue4YZdn0dzE847tU6e9etg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=4f58c87fd29411a10011fe677eaf78177dfe4cbf commit 4f58c87fd29411a10011fe677eaf78177dfe4cbf Author: Dimitry Andric AuthorDate: 2021-12-20 09:52:02 +0000 Commit: Dimitry Andric CommitDate: 2021-12-22 10:01:34 +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. (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);