X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fnetserv.c;h=b9dad16248cc83e0dcf4e6cbe2660f10c1a8e82f;hp=221c8ff9df0d388d633a9d81696356fa519e4cd8;hb=3836649c663e70e503686c52c67f71d21c00bb84;hpb=59c2e609872b70cb4c458004cd9e2fe22c86a54b diff --git a/src/netserv.c b/src/netserv.c index 221c8ff9..b9dad162 100644 --- a/src/netserv.c +++ b/src/netserv.c @@ -41,7 +41,7 @@ static int clients = 0; static int bots = 0; static int onceonly = 0; static int timetoplay = 0; -static int daemon = 0; +static int is_daemon = 0; static int level = 5; static int mode = -1; static int paused = 0; @@ -83,7 +83,7 @@ static fd_set fds; static void syserr(char *s) { - if (!daemon) + if (!is_daemon) fprintf(stderr, "fatal: %s failed.\n", s); exit(1); } @@ -518,7 +518,7 @@ void NetworkServer(int port, int serveronly) unsigned int len; struct protoent *tcpproto; struct timeval tv; - int daemon = 0; + int is_daemon = 0; #ifndef NeXT struct sigaction sact; @@ -558,7 +558,7 @@ void NetworkServer(int port, int serveronly) listen(lfd, 5); - if (daemon) + if (is_daemon) { /* become a daemon, breaking all ties with the controlling terminal */ verbose = 0;