From 9d5b333fb6e548aa2a9cda9094ad7e96e3eb33f7 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Mon, 20 Nov 2023 17:21:48 +0100 Subject: src|tests: Address warning -Wstrict-prototypes Symptom with Clang 15: > In file included from userinfo.c:20: > ./userinfo.h:38:27: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] > void invalidate_user_cache(); /* safe to call from signal handler */ > ^ > void > [many more] --- src/rate_limiter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rate_limiter.c') diff --git a/src/rate_limiter.c b/src/rate_limiter.c index 68763c7..fff8f21 100644 --- a/src/rate_limiter.c +++ b/src/rate_limiter.c @@ -28,7 +28,7 @@ const double rate_limiter_idle_credit = -0.2; -double gettimeofday_clock() +double gettimeofday_clock(void) { struct timeval tv; gettimeofday(&tv, NULL); @@ -50,7 +50,7 @@ static void sleep_seconds(double s) nanosleep(&ts, NULL); } -void rate_limiter_init(RateLimiter *limiter, double rate, double (*clock)()) +void rate_limiter_init(RateLimiter *limiter, double rate, double (*clock)(void)) { limiter->rate = rate; limiter->clock = clock; -- cgit v1.2.3