diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-02-25 15:38:12 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-02-25 15:38:12 +0000 |
commit | 3eaf284a600c01cf35d97245b8bf1cb5a157abf5 (patch) | |
tree | 21b87983067d01ee5152716524cfa1d20b23e2af /src/login_sql/login.c | |
parent | 56c38376f23bf7b942247ef42b36ab7401397f0b (diff) | |
download | hercules-3eaf284a600c01cf35d97245b8bf1cb5a157abf5.tar.gz hercules-3eaf284a600c01cf35d97245b8bf1cb5a157abf5.tar.bz2 hercules-3eaf284a600c01cf35d97245b8bf1cb5a157abf5.tar.xz hercules-3eaf284a600c01cf35d97245b8bf1cb5a157abf5.zip |
- Fixed a compiler warning in char_sql\login.c
- Minor source documentation/cleanup.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9917 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/login_sql/login.c')
-rw-r--r-- | src/login_sql/login.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c index 0e68cf8ec..394586f4f 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -1444,15 +1444,14 @@ int parse_fromchar(int fd){ int lan_subnetcheck(long p) { int i; - unsigned char *sbn, *msk, *src = (unsigned char *)&p; + //unsigned char *sbn, *msk, *src = (unsigned char *)&p; for(i=0; i<subnet_count; i++) { if(subnet[i].subnet == (p & subnet[i].mask)) { - +/* sbn = (unsigned char *)&subnet[i].subnet; msk = (unsigned char *)&subnet[i].mask; -/* ShowInfo("Subnet check [%u.%u.%u.%u]: Matches "CL_CYAN"%u.%u.%u.%u/%u.%u.%u.%u"CL_RESET"\n", src[0], src[1], src[2], src[3], sbn[0], sbn[1], sbn[2], sbn[3], msk[0], msk[1], msk[2], msk[3]); */ |