Mercurial > ~mikael > mcabber > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
882:c3c2f7a0c5d5 | 883:0aa9015f06df |
---|---|
1261 int (*convert)(void *userData, const char *p), | 1261 int (*convert)(void *userData, const char *p), |
1262 void *userData) | 1262 void *userData) |
1263 { | 1263 { |
1264 int i; | 1264 int i; |
1265 struct unknown_encoding *e = mem; | 1265 struct unknown_encoding *e = mem; |
1266 for (i = 0; i < sizeof(struct normal_encoding); i++) | 1266 for (i = 0; i < (int)sizeof(struct normal_encoding); i++) |
1267 ((char *)mem)[i] = ((char *)&latin1_encoding)[i]; | 1267 ((char *)mem)[i] = ((char *)&latin1_encoding)[i]; |
1268 for (i = 0; i < 128; i++) | 1268 for (i = 0; i < 128; i++) |
1269 if (latin1_encoding.type[i] != BT_OTHER | 1269 if (latin1_encoding.type[i] != BT_OTHER |
1270 && latin1_encoding.type[i] != BT_NONXML | 1270 && latin1_encoding.type[i] != BT_NONXML |
1271 && table[i] != i) | 1271 && table[i] != i) |
1360 "UTF-16LE", | 1360 "UTF-16LE", |
1361 }; | 1361 }; |
1362 int i; | 1362 int i; |
1363 if (name == 0) | 1363 if (name == 0) |
1364 return NO_ENC; | 1364 return NO_ENC; |
1365 for (i = 0; i < sizeof(encodingNames)/sizeof(encodingNames[0]); i++) | 1365 for (i = 0; i < (int)(sizeof(encodingNames)/sizeof(encodingNames[0])); i++) |
1366 if (streqci(name, encodingNames[i])) | 1366 if (streqci(name, encodingNames[i])) |
1367 return i; | 1367 return i; |
1368 return UNKNOWN_ENC; | 1368 return UNKNOWN_ENC; |
1369 } | 1369 } |
1370 | 1370 |