rnd-19981013-3
[rocksndiamonds.git] / src / netserv.c
index 221c8ff9df0d388d633a9d81696356fa519e4cd8..b9dad16248cc83e0dcf4e6cbe2660f10c1a8e82f 100644 (file)
@@ -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;