diff options
author | Martin Pärtel <martin.partel@gmail.com> | 2023-11-27 23:35:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-27 23:35:41 +0200 |
commit | 2b5f2e24527f04f4255161965ae4099192714b73 (patch) | |
tree | b8edd8485dfcd64c68b12da4221a356acd54a0fa /src/rate_limiter.c | |
parent | 47f4cac457c3583548c0d7dba402568a1e0871b8 (diff) | |
parent | 95936b647c0283cc6ebd2b685cc5b72889cda8bd (diff) | |
download | bindfs-2b5f2e24527f04f4255161965ae4099192714b73.tar.gz |
Merge pull request #150 from hartwork/macos-ci
Cover macOS in CI + make CI use the right compiler + fix more compile warnings
Diffstat (limited to 'src/rate_limiter.c')
-rw-r--r-- | src/rate_limiter.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |