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:
Joachim Nilsson committed 2016-12-30 13:34:31 +01:00
1 parent d9de2717a2
commit f95cd38ddb
5 files changed
+20 -20

No files matched your search

+2 -2
View File
@@ -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;