Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Oct 2022 16:57:45 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: aec9453fec70 - main - times: Use modern function definitions
Message-ID:  <202210251657.29PGvju0065060@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=aec9453fec70864234c70ccd0198c8b612139cf7

commit aec9453fec70864234c70ccd0198c8b612139cf7
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-10-25 05:03:11 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-10-25 16:57:29 +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
---
 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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210251657.29PGvju0065060>