summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-01-23 16:51:56 +0100
committerHaru <haru@dotalux.com>2014-01-23 17:14:09 +0100
commite68d860dbaa6b1bcf8104463cd3001ae946b7d4e (patch)
tree38f6757fbc2d4ad34e89b3d48d5ed221a3125147 /src/map/npc.c
parent22b7f90297184775ad94d8cb4806e8664c78d934 (diff)
downloadhercules-e68d860dbaa6b1bcf8104463cd3001ae946b7d4e.tar.gz
hercules-e68d860dbaa6b1bcf8104463cd3001ae946b7d4e.tar.bz2
hercules-e68d860dbaa6b1bcf8104463cd3001ae946b7d4e.tar.xz
hercules-e68d860dbaa6b1bcf8104463cd3001ae946b7d4e.zip
Compatibility fixes for NetBSD and Solaris
- Fixed some warnings in NetBSD (5.x and 6.x) and Solaris (11) Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 722e5199c..458fc52ed 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -2432,7 +2432,7 @@ int npc_parseview(const char* w4, const char* start, const char* buffer, const c
// Extract view ID / constant
while (w4[i] != '\0') {
- if (isspace(w4[i]) || w4[i] == '/' || w4[i] == ',')
+ if (ISSPACE(w4[i]) || w4[i] == '/' || w4[i] == ',')
break;
i++;
@@ -2464,7 +2464,7 @@ bool npc_viewisid(const char * viewid)
{
// Loop through view, looking for non-numeric character.
while (*viewid) {
- if (isdigit(*viewid++) == 0) return false;
+ if (ISDIGIT(*viewid++) == 0) return false;
}
}