fixed clang compiler warnings

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@777 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2012-04-24 11:28:14 +00:00
parent c27f02690e
commit e3e8ee659c
4 changed files with 27 additions and 23 deletions

View File

@@ -92,10 +92,10 @@ void _bin_log(sc_context_t *ctx, int type, const char *file, int line,
buf[0] = 0;
sc_do_log(ctx, type, file, line, func,
"\n%s (%u byte%s):\n%s",
label, len, len==1?"":"s", buf);
label, (unsigned int) len, len==1?"":"s", buf);
} else {
fprintf(f, "%s (%u byte%s):\n%s\n",
label, len, len==1?"":"s", sc_dump_hex(data, len));
label, (unsigned int) len, len==1?"":"s", sc_dump_hex(data, len));
}
}