Minor cleanup

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2016-07-18 17:30:14 +02:00
1 parent 7dfdc2395b
commit 45bdadebb6
2 files changed
+1 -2

No files matched your search

-1
View File
@@ -38,7 +38,6 @@
#include "service.h" #include "service.h"
#include "sig.h" #include "sig.h"
#include "tty.h" #include "tty.h"
#include "inetd.h"
#include "sm.h" #include "sm.h"
int debug = 0; int debug = 0;
+1 -1
View File
@@ -107,8 +107,8 @@ static int inetd_stream_peek(int sd, char *ifname)
static int get_stdin(svc_t *svc) static int get_stdin(svc_t *svc)
{ {
char ifname[IF_NAMESIZE] = "UNKNOWN";
int stdin = svc->inetd.watcher.fd; int stdin = svc->inetd.watcher.fd;
char ifname[IF_NAMESIZE] = "UNKNOWN";
if (svc->inetd.type == SOCK_STREAM) { if (svc->inetd.type == SOCK_STREAM) {
/* Open new client socket from server socket */ /* Open new client socket from server socket */