diff --git a/finit.c b/finit.c index 535f1227..4e148bf4 100644 --- a/finit.c +++ b/finit.c @@ -38,7 +38,6 @@ #include "service.h" #include "sig.h" #include "tty.h" -#include "inetd.h" #include "sm.h" int debug = 0; diff --git a/inetd.c b/inetd.c index 43555e18..d76d6f2e 100755 --- a/inetd.c +++ b/inetd.c @@ -107,8 +107,8 @@ static int inetd_stream_peek(int sd, char *ifname) static int get_stdin(svc_t *svc) { - char ifname[IF_NAMESIZE] = "UNKNOWN"; int stdin = svc->inetd.watcher.fd; + char ifname[IF_NAMESIZE] = "UNKNOWN"; if (svc->inetd.type == SOCK_STREAM) { /* Open new client socket from server socket */