diff options
author | Leah Neukirchen <leah@vuxu.org> | 2024-02-08 15:44:17 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2024-02-08 15:44:17 +0100 |
commit | 1755ae1cd3d84f338d96be0247c68eb0eb124e63 (patch) | |
tree | 99cb533739c20607c3dcd96f061f1fd8fcb83bc8 | |
parent | 4d0d95290ec2db047949d193c084dc44f614f6b6 (diff) | |
download | nitro-1755ae1cd3d84f338d96be0247c68eb0eb124e63.tar.gz nitro-1755ae1cd3d84f338d96be0247c68eb0eb124e63.tar.xz nitro-1755ae1cd3d84f338d96be0247c68eb0eb124e63.zip |
cleanup
-rw-r--r-- | nitro.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/nitro.c b/nitro.c index 8c5ba2d..b0651a3 100644 --- a/nitro.c +++ b/nitro.c @@ -578,7 +578,6 @@ proc_zap(int i) { } } - void process_step(int i, enum process_events ev) { @@ -778,7 +777,6 @@ process_step(int i, enum process_events ev) } } - void on_signal(int sig) { @@ -984,7 +982,6 @@ do_shutdown(int state) global_state = state; - struct stat st; if (stat("SYS", &st) == 0) { int b = add_service("SYS"); @@ -1083,7 +1080,6 @@ prn(2, "check %s to file %s passed\n", services[i].name, name); MSG_DONTWAIT, (struct sockaddr *)&addr, sizeof addr); } } - } int @@ -1423,14 +1419,12 @@ main(int argc, char *argv[]) prn(2, "- nitro: booting\n"); - { - struct stat st; - if (stat("SYS", &st) == 0) { - int b = add_service("SYS"); - process_step(b, EVNT_WANT_UP); - } else { - rescan(1); - } + struct stat st; + if (stat("SYS", &st) == 0) { + int b = add_service("SYS"); + process_step(b, EVNT_WANT_UP); + } else { + rescan(1); } struct pollfd fds[2]; |