diff options
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -19,7 +19,7 @@ int _testmode = 0; // Base time for monotonic clock static struct timespec basetime; -time_t now() +time_t now( void ) { struct timespec retval; if ( clock_gettime( CLOCK_MONOTONIC, &retval ) == -1 ) { @@ -29,7 +29,7 @@ time_t now() return (time_t)( retval.tv_sec - basetime.tv_sec ); } -void init_time() +void init_time( void ) { if ( clock_gettime( CLOCK_MONOTONIC, &basetime ) == -1 ) { perror( "cannot clock_gettime CLOCK_MONOTONIC" ); @@ -40,7 +40,7 @@ void init_time() /** * Return false = parent, true = second child */ -bool doublefork() +bool doublefork( void ) { const pid_t c1 = fork(); if ( c1 == -1 ) { |