From 0209b2c932994e9ca55d39d98a83ea02aacd1332 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Sat, 18 Mar 2023 23:18:11 -0400 Subject: Modernize code by removing use of old style definitions. Also add -Werror=old-style-definition to enforce new code. Message-Id: --- pfinet/mapped-time.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pfinet/mapped-time.h') diff --git a/pfinet/mapped-time.h b/pfinet/mapped-time.h index 01f2dcc8..1d37affd 100644 --- a/pfinet/mapped-time.h +++ b/pfinet/mapped-time.h @@ -9,13 +9,13 @@ extern volatile struct mapped_time_value *mapped_time; extern long long root_jiffies; static inline int -read_mapped_secs () +read_mapped_secs (void) { return mapped_time->seconds; } static inline int -fetch_jiffies () +fetch_jiffies (void) { struct timeval tv; long long j; -- cgit v1.2.3