From nobody Sun Apr 09 14:38:43 2023 X-Original-To: dev-commits-src-branches@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 4PvZVD04qPz44XpF; Sun, 9 Apr 2023 14:38:44 +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 4PvZVC2L72z4KFv; Sun, 9 Apr 2023 14:38:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681051123; 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=0d4BY3tdunEh7MEfRkOP/FY7d2NYSK/Ch+zcULfSLIo=; b=Wy+S26pR54g3wRgHl9iYEwwPLr+shUhySPQM+jXJoZQ30gp1pvf9hz4/P+ygk1NlvxmQXv ZH9GEcRp0nAQVpL8Yyl613ZBmcKSoeBg+OOtMCyanAhb53VLjO/IB8vk4mvriARA5aLEBA FigVuIe2BeiXzQTEbwwalpIe+1BWSq6SrX4HoFjBVoAtzDLAW6c3BywhVppJLP8JmDfx5M etXWyJQk/8QuGgWgw6qGgVyCbhX3d0vAoa7zQr5VHvvP6/1yM8KLuoEsdwF86v9CMY3qT9 uCcfaRFCQREqt80tcavLEYS0nHqU+j8U22YJdSOuJ1R+BcDIuEaichFoTdtDPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681051123; 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=0d4BY3tdunEh7MEfRkOP/FY7d2NYSK/Ch+zcULfSLIo=; b=T4gSAsKCpINYY1EAW6PPVO7QbNq4e35r/lqoMb+BKrlp7iLirxB7p7R5SBIDlsd/1xsKEY arYGu4RbNv0CqlRyBk2KQdcTGHL5XbbB9b2qHFPC9DCKOQrLt1hawgxnQPvldPpPvpeahI RHg6Xf6BQD3wmQ6NI5PoV0yaRmKEdm6jkBQWnJBN0Yh9xlaasW98RkqiyRAyDkZk3WEQKa ZfsGQD6uTxyl5BjzMb/OkwJOqjxPLwXd7MrdI8gIli0sFUQKyn8oGwxfwgomAohrWJ4N9w kTrE5gjD9giVZcalEVUa7r32kyG5ZgFVS69BSQCdXAOxUwvodbABLNyh4TC1OQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681051123; a=rsa-sha256; cv=none; b=sfMtqSN9+3atRUPr+RQrRt/dh7ZaAmUBxV8djzPtWlfXcMn3HojHPRHyjODE9uhdVc0uSs 3b0rl6qlrZPLttqwVR2TG/zevhqeCqE+kwfh9JjdrNsgTa9Xbvp9bm36coW2+HyM4m6ZK+ 6Iuseeb0piQNa9PeLxuHdMh+xqbd7hrq7XBX6KcLPQzixML4R/z8336A1XpfDN5HumpV9p lN6i6+i4YAVKC957X5C0T0UfStAP47d7xVYYQC+jMpr1iB8nGN/lLaGtbjetzsT0RDOHVn gu/Y54wnj3BesNnJncG1CsBqXlU9HseosJvmFq6RMSQeDywnsl1DYB/QeBTMtQ== 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 4PvZVC1Gckz1BYr; Sun, 9 Apr 2023 14:38: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 339Ech3k085937; Sun, 9 Apr 2023 14:38:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 339Ech2m085936; Sun, 9 Apr 2023 14:38:43 GMT (envelope-from git) Date: Sun, 9 Apr 2023 14:38:43 GMT Message-Id: <202304091438.339Ech2m085936@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: bf86e2c503bc - stable/13 - times: Use modern function definitions List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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: bf86e2c503bcffb46f59a8d08eea68d96016815f Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=bf86e2c503bcffb46f59a8d08eea68d96016815f commit bf86e2c503bcffb46f59a8d08eea68d96016815f Author: Warner Losh AuthorDate: 2022-10-25 05:03:11 +0000 Commit: Dimitry Andric CommitDate: 2023-04-09 14:37:52 +0000 times: Use modern function definitions Use the modern ANSI function defition syntax rather than the old K&R syntax for times. Sponsored by: Netflix (cherry picked from commit aec9453fec70864234c70ccd0198c8b612139cf7) --- lib/libc/gen/times.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/libc/gen/times.c b/lib/libc/gen/times.c index d811b553b990..985c8266a0f8 100644 --- a/lib/libc/gen/times.c +++ b/lib/libc/gen/times.c @@ -45,8 +45,7 @@ __FBSDID("$FreeBSD$"); #define CONVTCK(r) (r.tv_sec * CLK_TCK + r.tv_usec / (1000000 / CLK_TCK)) clock_t -times(tp) - struct tms *tp; +times(struct tms *tp) { struct rusage ru; struct timespec t;