]> git.pond.sub.org Git - empserver/blobdiff - src/lib/player/accept.c
Update copyright notice
[empserver] / src / lib / player / accept.c
index ab21861a39f3ec2315cdc796ad467a391da4ad64..8aa922c40d61f44bf3e62fdae637120a9d011956 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2014, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2015, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                Ken Stevens, Steve McClure, Markus Armbruster
  *
  *  Empire is free software: you can redistribute it and/or modify
@@ -28,7 +28,7 @@
  *
  *  Known contributors to this file:
  *     Dave Pare, 1994
- *     Markus Armbruster, 2005-2013
+ *     Markus Armbruster, 2005-2014
  */
 
 #include <config.h>
@@ -48,7 +48,6 @@
 #include "nat.h"
 #include "optlist.h"
 #include "player.h"
-#include "power.h"
 #include "prototypes.h"
 
 static struct emp_qelem Players;
@@ -175,9 +174,6 @@ player_accept(void *unused)
     int ns;
     int set = 1;
     char buf[128];
-#ifdef RESOLVE_IPADDRESS
-    struct hostent *hostp;
-#endif
 
     /* auto sockaddr_storage would be simpler, but less portable */
     sap = malloc(player_addrlen);
@@ -213,11 +209,6 @@ player_accept(void *unused)
            continue;
        }
        logerror("Connect from %s", np->hostaddr);
-#ifdef RESOLVE_IPADDRESS
-       hostp = gethostbyaddr(inaddr, player_addrlen, sap->sa_family);
-       if (NULL != hostp)
-           strcpy(np->hostname, hostp->h_name);
-#endif /* RESOLVE_IPADDRESS */
        sprintf(buf, "Conn%d", conn_cnt++);
        empth_create(player_login, 1024 * 1024, 0, buf, np);
     }