summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-22 08:50:36 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-22 08:50:36 +0000
commitb219bc963c87f335cd9c0edd9114982b8e02f4aa (patch)
treee01eaab0b8c477fd9ce0f292bec10864cbc63ab4 /src/map
parent23aa6d218ca1c69f234725f5d78aae1f42e326db (diff)
downloadhercules-b219bc963c87f335cd9c0edd9114982b8e02f4aa.tar.gz
hercules-b219bc963c87f335cd9c0edd9114982b8e02f4aa.tar.bz2
hercules-b219bc963c87f335cd9c0edd9114982b8e02f4aa.tar.xz
hercules-b219bc963c87f335cd9c0edd9114982b8e02f4aa.zip
* [Fixed]:
- Compilation warnings and errors. [Improved]: - Changed and moved IP sync status messages to elaborate more. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7290 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/chrif.c2
-rw-r--r--src/map/map.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index 19002eab4..5b7dee2de 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -1414,8 +1414,8 @@ int chrif_disconnect(int fd) {
void chrif_update_ip(int fd){
char ip[4];
- ShowInfo("IP Sync in progress...\n");
if (map_server_dns && resolve_hostbyname(map_server_dns, ip, NULL)) {
+ ShowInfo("IP Sync [%s] in progress...\n",map_server_dns);
WFIFOW(fd, 0) = 0x2736;
WFIFOB(fd, 2) = ip[0];
WFIFOB(fd, 3) = ip[1];
diff --git a/src/map/map.c b/src/map/map.c
index 34498bd89..0aa48b914 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -6,7 +6,10 @@
#include <string.h>
#include <stdarg.h>
#include <math.h>
+
+#ifndef _WIN32
#include <unistd.h>
+#endif
#include "../common/core.h"
#include "../common/timer.h"