Explorar el Código

Fixed sign warnings in login/login.c

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7940 54d463be-8e91-2dee-dedb-b68131a5f0ec
toms hace 19 años
padre
commit
5e40f9e914
Se han modificado 2 ficheros con 3 adiciones y 2 borrados
  1. 1 0
      Changelog-Trunk.txt
  2. 2 2
      src/login/login.c

+ 1 - 0
Changelog-Trunk.txt

@@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2006/07/28
+	* Fixed sign warnings in login/login.c [Toms]
 	* Fixed "conversion from 'double' to 'int', possible loss of data" [Toms]
 	* Fixed "warning: redefinition of [ushort/uint/ulong]" [Toms]
 	* Fixed duplicate case value on NJ_SUITON [Toms]

+ 2 - 2
src/login/login.c

@@ -1407,7 +1407,7 @@ static int online_db_setoffline(DBKey key, void* data, va_list ap) {
 // Packet parsing for char-servers
 //--------------------------------
 int parse_fromchar(int fd) {
-	int i;
+	unsigned int i;
 	int j, id;
 	unsigned char *p = (unsigned char *) &session[fd]->client_addr.sin_addr;
 	char ip[16];
@@ -1911,7 +1911,7 @@ int parse_fromchar(int fd) {
 			}
 			{
 				struct online_login_data *p;
-				int aid, users;
+				unsigned int aid, users;
 				online_db->foreach(online_db,online_db_setoffline,id); //Set all chars from this char-server offline first
 				users = RFIFOW(fd,4);
 				for (i = 0; i < users; i++) {