fix a few warnings/places where the clang static analyzer complains

This commit is contained in:
Michael Stapelberg
2012-08-05 16:34:38 +02:00
parent cab8e3c46f
commit 8a1c8115ca
9 changed files with 20 additions and 22 deletions

View File

@ -139,7 +139,7 @@ static int json_string(void *ctx, const unsigned char *val, size_t len) {
#else
static int json_string(void *ctx, const unsigned char *val, unsigned int len) {
#endif
LOG("string: %.*s for key %s\n", len, val, last_key);
LOG("string: %.*s for key %s\n", (int)len, val, last_key);
if (parsing_swallows) {
/* TODO: the other swallowing keys */
if (strcasecmp(last_key, "class") == 0) {