mirror of
https://github.com/troglobit/finit.git
synced 2026-10-13 10:14:47 +00:00
Refactor #ifndef INETD_DISABLED --> #ifdef INETD_ENABLED
This patch changes the confusing logic in all #ifndef INETD_DISABLED statements to instead be #ifdef INETD_ENABLED, which is quite a bit more readable. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
d9de2717a2
commit
f95cd38ddb
5 files changed
+20
-20
No files matched your search
@@ -377,7 +377,7 @@ static int show_status(char *arg)
|
||||
continue;
|
||||
}
|
||||
|
||||
#ifndef INETD_DISABLED
|
||||
#ifdef INETD_ENABLED
|
||||
if (svc_is_inetd(svc)) {
|
||||
char *info;
|
||||
struct init_request rq = {
|
||||
@@ -401,7 +401,7 @@ static int show_status(char *arg)
|
||||
printf("%s %s\n", svc->cmd, info);
|
||||
}
|
||||
else
|
||||
#endif /* !INETD_DISABLED */
|
||||
#endif /* INETD_ENABLED */
|
||||
{
|
||||
int i;
|
||||
|
||||
|
||||
Reference in new issue
Block a user