diff options
author | Warner Losh <imp@FreeBSD.org> | 2022-10-25 05:03:11 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2022-10-25 16:57:29 +0000 |
commit | aec9453fec70864234c70ccd0198c8b612139cf7 (patch) | |
tree | e932962d3f3ddcee6d62b4205fc6c58aefde5237 | |
parent | 3b899d5a8f4171409f91c5721b9ed67c6cc11348 (diff) | |
download | src-aec9453fec70864234c70ccd0198c8b612139cf7.tar.gz src-aec9453fec70864234c70ccd0198c8b612139cf7.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
-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; |