A tiny patch that fixes several warnings on signedess and lost of
precision:

-----------------------------------------------------------
diff --git a/src/tools/util.c b/src/tools/util.c
index b146567..53989f3 100644
--- a/src/tools/util.c
+++ b/src/tools/util.c
@@ -136,9 +136,9 @@ void util_print_binary(FILE *f, const u8 *buf, int
count)
        (void) fflush(f);
 }

-void util_hex_dump(FILE *f, const u8 *in, int len, const char *sep)
+void util_hex_dump(FILE *f, const u8 *in, size_t len, const char *sep)
 {
-       int i;
+       size_t i;

        for (i = 0; i < len; i++) {
                if (sep != NULL && i)
diff --git a/src/tools/util.h b/src/tools/util.h
index f0ea80b..1fca6f9 100644
--- a/src/tools/util.h
+++ b/src/tools/util.h
@@ -24,7 +24,7 @@ extern "C" {
 #endif

 void util_print_binary(FILE *f, const u8 *buf, int count);
-void util_hex_dump(FILE *f, const u8 *in, int len, const char *sep);
+void util_hex_dump(FILE *f, const u8 *in, size_t len, const char *sep);
 void util_hex_dump_asc(FILE *f, const u8 *in, size_t count, int addr);
 void util_print_usage_and_die(const char *app_name, const struct option
options[],
        const char *option_help[]);
-------------------------------------------------------------------------

Juan Antonio

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to