diff options
author | Simon Rettberg | 2019-05-14 14:14:48 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-05-14 14:14:48 +0200 |
commit | 6cbc590a92a52a905b149608f63f459f0d785c1d (patch) | |
tree | 33305f0ecb19b90d1741e189339df3f20ab49f9d /src/util.c | |
parent | Enforce minimum delay for RPC actions if user is active (diff) | |
download | idle-daemon-6cbc590a92a52a905b149608f63f459f0d785c1d.tar.gz idle-daemon-6cbc590a92a52a905b149608f63f459f0d785c1d.tar.xz idle-daemon-6cbc590a92a52a905b149608f63f459f0d785c1d.zip |
f() -> f(void)
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 ) { |