diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-01-08 15:39:16 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-01-08 15:39:16 -0800 |
commit | 3e42921c657bc93094f0c7d96855aae9b0be5a7e (patch) | |
tree | fe74fd1c1f8b370084091f1e26aef94ad427e7b0 /src/char/char.cpp | |
parent | 8b0d596d0bfce7666e59952a6949572ab826b43c (diff) | |
download | tmwa-3e42921c657bc93094f0c7d96855aae9b0be5a7e.tar.gz tmwa-3e42921c657bc93094f0c7d96855aae9b0be5a7e.tar.bz2 tmwa-3e42921c657bc93094f0c7d96855aae9b0be5a7e.tar.xz tmwa-3e42921c657bc93094f0c7d96855aae9b0be5a7e.zip |
Improve warnings; fix const_db.txt bug.
Diffstat (limited to 'src/char/char.cpp')
-rw-r--r-- | src/char/char.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/char/char.cpp b/src/char/char.cpp index ed45b82..67003b5 100644 --- a/src/char/char.cpp +++ b/src/char/char.cpp @@ -3366,13 +3366,8 @@ int lan_config_read(const char *lancfgName) // sub-network check of the map-server { - unsigned int a0, a1, a2, a3; unsigned char p[4]; - sscanf(lan_map_ip, "%d.%d.%d.%d", &a0, &a1, &a2, &a3); - p[0] = a0; - p[1] = a1; - p[2] = a2; - p[3] = a3; + sscanf(lan_map_ip, "%hhu.%hhu.%hhu.%hhu", &p[0], &p[1], &p[2], &p[3]); PRINTF("LAN test of LAN IP of the map-server: "); if (lan_ip_check(p) == 0) { |