Revision 6:e537b3b8b2b9 protocol.cpp
| protocol.cpp | ||
|---|---|---|
| 170 | 170 |
|
| 171 | 171 |
err = string(XML_ErrorString(XML_GetErrorCode(parser))); |
| 172 | 172 |
char num[10]; |
| 173 |
sprintf(num, "%d", XML_GetCurrentLineNumber(parser)); |
|
| 173 |
sprintf(num, "%d", (int)XML_GetCurrentLineNumber(parser));
|
|
| 174 | 174 |
err += string(" on line ") + string(num);
|
| 175 | 175 |
XML_ParserFree(parser); |
| 176 | 176 |
|
| ... | ... | |
| 258 | 258 |
} |
| 259 | 259 |
// printf("response: %s\n\n", response.c_str());
|
| 260 | 260 |
|
| 261 |
unsigned int q = response.find("<?xml");
|
|
| 261 |
int q = response.find("<?xml");
|
|
| 262 | 262 |
if (q != string::npos) {
|
| 263 | 263 |
response = response.substr(q); |
| 264 | 264 |
} |
Also available in: Unified diff