From nobody Wed Mar 22 22:28:37 2023 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 4Phjmj6mQ7z41P8X; Wed, 22 Mar 2023 22:28:37 +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 4Phjmj4QF7z3hyk; Wed, 22 Mar 2023 22:28:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679524117; 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=EKXdUHXKe9bNt58qnjRRrRbczJuZ4w1gJ6Y2wk9xZpI=; b=TmGNHmlL1ufLca7z3ESEQaYfMhx1JMP/8h7EBJuw2ngkaSLtUnhfIMCiI7/t0PCva3mP2w LgECkFt3q2up/z4uZtqtGB6LagmEubp33rVjXMkl1vtpR3UTdpUUtSwtmGnRdaSMwY86/j lhTQcwml3nj/ikEMDR1y/ex8kLnD0SEaZ6YtU0+9OHmt2ezjD1ODhyn+R9jrPjqWWdITxs QYSHS8U33hUd+zKo3dJmYpsAwTiK52uVPz4mgCIII3EznaRl/NBJO85v1ktSMRoSZjgUCe 3GjqKVKnmGh6uDFVaUprnXH5b6by51qJyLeDgGak9t3lyLiANlxMMiGycaf1lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679524117; 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=EKXdUHXKe9bNt58qnjRRrRbczJuZ4w1gJ6Y2wk9xZpI=; b=BkT2eouUHJAT6QeXxmdYif3gzhtWi36rXvNQinhIB0j+3vXv7nkXaobPEL8+VuDSh70apU d2CSOWeDUhs/OixkP0/w+oK6T7NJWHz28tZdZyBSMt4vhEsGGwcBjfxZFLkieGa8cN9Ma/ VDXMM3tcRdNNCBVcQ3UupknC9RupSeL3BlHDNGG99MZOlWR1+J5ldyAS/4/+Gnp5Kxf6F/ yzNlcscDRa84sHlwLVlFssSD+8nptfGtX/rScVy6QQWL8IvTVLN6MAT/RdAAHzS6cGhQb4 tplOtoVwYKnvweZQ9MLZrKEwNfv2YZvyIJ8PKfXyo6sD5TOoWHvXQN/mwi9dmw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679524117; a=rsa-sha256; cv=none; b=X2IY+Yijo9JsPnjn4KPWqxFtcJuCVmq8aoXefLZ5I0tW3VNnk4jOna2frCB5d59K+1dVDn jIB/n60ql8gabmkmjX8Z2hG3shBFYA8dfeN8uUfcHnVMFZaUHTx65/RVC0vO3VwEpmUF60 drFDECUlMLLoihSA7uduVqkl8gnjhQ9PXjfWQSK9svf7pF818WWatpiizOeXgaGLuB8MGe eH5ggwWNozuGWvMdQT/rLgwvUY8kIKoZtFmkJgkwQ0GzCuvrwMS2vNon9LSuRSM5E3pHIT XXwkUk7UZRn8rFuWj4A4ZJbAP+VupbyPgHWPqtqukGDppT/QLbF1Egxy7UCfow== 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 4Phjmj3Rgsz1B6w; Wed, 22 Mar 2023 22:28:37 +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 32MMSboO001805; Wed, 22 Mar 2023 22:28:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32MMSbA6001804; Wed, 22 Mar 2023 22:28:37 GMT (envelope-from git) Date: Wed, 22 Mar 2023 22:28:37 GMT Message-Id: <202303222228.32MMSbA6001804@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 5bb908625468 - stable/12 - Fix GCC build. 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 5bb908625468bfa3b0c49722de2412e009d38bff Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=5bb908625468bfa3b0c49722de2412e009d38bff commit 5bb908625468bfa3b0c49722de2412e009d38bff Author: Li-Wen Hsu AuthorDate: 2020-02-13 19:05:19 +0000 Commit: John Baldwin CommitDate: 2023-03-22 19:22:25 +0000 Fix GCC build. Sponsored by: The FreeBSD Foundation (cherry picked from commit 338450436d9d691a18fb94373c58e91aa3fcb374) --- tests/sys/net/randsleep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sys/net/randsleep.c b/tests/sys/net/randsleep.c index a602d06921e7..8bbad5b7557d 100644 --- a/tests/sys/net/randsleep.c +++ b/tests/sys/net/randsleep.c @@ -37,7 +37,7 @@ #include #include -#define RANDOM_MAX ((1<<31) - 1) +#define RANDOM_MAX (((long)1<<31) - 1) int main(int argc, char** argv){ useconds_t max_usecs, usecs;