diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2023-03-18 23:18:11 -0400 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-04-03 00:22:08 +0200 |
commit | 0209b2c932994e9ca55d39d98a83ea02aacd1332 (patch) | |
tree | f8778cca656943ee36193b49a7727557ba82319b /daemons | |
parent | 6f3d68bc8b46bdc7b0f5f43918744d99746672a2 (diff) | |
download | hurd-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 'daemons')
-rw-r--r-- | daemons/console-run.c | 2 | ||||
-rw-r--r-- | daemons/runttys.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/daemons/console-run.c b/daemons/console-run.c index 0cc1be8e..f98ebf8a 100644 --- a/daemons/console-run.c +++ b/daemons/console-run.c @@ -28,7 +28,7 @@ #include <device/device.h> static mach_port_t -get_console () +get_console (void) { mach_port_t device_master, console; error_t err = get_privileged_ports (0, &device_master); diff --git a/daemons/runttys.c b/daemons/runttys.c index baefdbef..1b4b3601 100644 --- a/daemons/runttys.c +++ b/daemons/runttys.c @@ -428,7 +428,7 @@ reopen_console (int signo) #endif int -main () +main (void) { int fail; struct sigaction sa; |