Mercurial > ~mikael > mcabber > hg
diff mcabber/libjabber/xmltok.c @ 883:0aa9015f06df
Remove some more libjabber warnings
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 27 May 2006 19:17:01 +0200 |
parents | ec86d759ed54 |
children |
line wrap: on
line diff
--- a/mcabber/libjabber/xmltok.c Sat May 27 18:53:56 2006 +0200 +++ b/mcabber/libjabber/xmltok.c Sat May 27 19:17:01 2006 +0200 @@ -1263,7 +1263,7 @@ { int i; struct unknown_encoding *e = mem; - for (i = 0; i < sizeof(struct normal_encoding); i++) + for (i = 0; i < (int)sizeof(struct normal_encoding); i++) ((char *)mem)[i] = ((char *)&latin1_encoding)[i]; for (i = 0; i < 128; i++) if (latin1_encoding.type[i] != BT_OTHER @@ -1362,7 +1362,7 @@ int i; if (name == 0) return NO_ENC; - for (i = 0; i < sizeof(encodingNames)/sizeof(encodingNames[0]); i++) + for (i = 0; i < (int)(sizeof(encodingNames)/sizeof(encodingNames[0])); i++) if (streqci(name, encodingNames[i])) return i; return UNKNOWN_ENC;