From b95c69d2f5f0d5179f945298d957af9876e8e147 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Thu, 26 Feb 2009 22:14:14 +0000 Subject: [PATCH] Fix problem reported by clang. TODO: we should review sign of length attributes and make them consistent whenever possible. By: Luis Felipe Strano Moraes SVN revision: 39258 --- legacy/eet/src/bin/eet_main.c | 3 +-- legacy/eet/src/lib/eet_lib.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/legacy/eet/src/bin/eet_main.c b/legacy/eet/src/bin/eet_main.c index 10d3ca4a63..a478648f8a 100644 --- a/legacy/eet/src/bin/eet_main.c +++ b/legacy/eet/src/bin/eet_main.c @@ -218,7 +218,6 @@ do_eet_check(const char *file) { Eet_File *ef; const void *der; - const void *sign; int der_length; int sign_length; @@ -234,7 +233,7 @@ do_eet_check(const char *file) fprintf(stderr, "Certificate length %i.\n", der_length); eet_identity_certificate_print(der, der_length, stdout); - sign = eet_identity_signature(ef, &sign_length); + eet_identity_signature(ef, &sign_length); fprintf(stderr, "Signature length %i.\n", sign_length); eet_close(ef); diff --git a/legacy/eet/src/lib/eet_lib.c b/legacy/eet/src/lib/eet_lib.c index cef16e36b1..80858b5e47 100644 --- a/legacy/eet/src/lib/eet_lib.c +++ b/legacy/eet/src/lib/eet_lib.c @@ -103,7 +103,7 @@ struct _Eet_File int data_size; int x509_length; unsigned int signature_length; - unsigned int sha1_length; + int sha1_length; time_t mtime;