diff options
author | Warner Losh <imp@FreeBSD.org> | 2022-10-25 05:03:11 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2023-04-09 14:37:52 +0000 |
commit | bf86e2c503bcffb46f59a8d08eea68d96016815f (patch) | |
tree | f33165374652eb7f9bd4b036b7fea94718f070d0 | |
parent | 6cee6af2064ae0c60221238904dd2c6420845128 (diff) | |
download | src-bf86e2c503bcffb46f59a8d08eea68d96016815f.tar.gz src-bf86e2c503bcffb46f59a8d08eea68d96016815f.zip |
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)
-rw-r--r-- | lib/libc/gen/times.c | 3 |
1 files changed, 1 insertions, 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; |