aboutsummaryrefslogtreecommitdiff
path: root/libnetfs
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-03-18 23:18:11 -0400
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-04-03 00:22:08 +0200
commit0209b2c932994e9ca55d39d98a83ea02aacd1332 (patch)
treef8778cca656943ee36193b49a7727557ba82319b /libnetfs
parent6f3d68bc8b46bdc7b0f5f43918744d99746672a2 (diff)
downloadhurd-0209b2c932994e9ca55d39d98a83ea02aacd1332.tar.gz
hurd-0209b2c932994e9ca55d39d98a83ea02aacd1332.tar.bz2
hurd-0209b2c932994e9ca55d39d98a83ea02aacd1332.zip
Modernize code by removing use of old style definitions.
Also add -Werror=old-style-definition to enforce new code. Message-Id: <ZBZ+8xf7GHy2RT/h@jupiter.tail36e24.ts.net>
Diffstat (limited to 'libnetfs')
-rw-r--r--libnetfs/init-init.c2
-rw-r--r--libnetfs/init-loop.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libnetfs/init-init.c b/libnetfs/init-init.c
index b63e7ffa..19ed0d3d 100644
--- a/libnetfs/init-init.c
+++ b/libnetfs/init-init.c
@@ -35,7 +35,7 @@ volatile struct mapped_time_value *netfs_mtime;
void
-netfs_init ()
+netfs_init (void)
{
error_t err;
err = maptime_map (0, 0, &netfs_mtime);
diff --git a/libnetfs/init-loop.c b/libnetfs/init-loop.c
index 61471c2f..c6ca5387 100644
--- a/libnetfs/init-loop.c
+++ b/libnetfs/init-loop.c
@@ -24,7 +24,7 @@ static int thread_timeout = 1000 * 60 * 2; /* two minutes */
static int server_timeout = 1000 * 60 * 10; /* ten minutes */
void
-netfs_server_loop ()
+netfs_server_loop (void)
{
error_t err;