diff options
author | Gaurav Shah <gauravsh@chromium.org> | 2011-03-25 14:02:13 -0700 |
---|---|---|
committer | Gaurav Shah <gauravsh@chromium.org> | 2011-03-25 14:02:13 -0700 |
commit | d583a30a7c3bd369f82c0428666c7a708d5341d5 (patch) | |
tree | 1e6bde436996b6e0127833db4f1225afb682b75a /host/lib | |
parent | 2c7213d4dc5cef71b5cf76c44a12ff14e15dfeb4 (diff) | |
download | vboot-d583a30a7c3bd369f82c0428666c7a708d5341d5.tar.gz |
Use uint64_t and avoid down casting as much as possible.
Change-Id: I231d1b3a059907c3806feced7e1b8f1c06575ba5
BUG=chromeos-partner:2912
TEST=make clean all && make runtests
Review URL: http://codereview.chromium.org/6733018
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/host_key.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/host_key.c b/host/lib/host_key.c index bcc89fce..33d911f2 100644 --- a/host/lib/host_key.c +++ b/host/lib/host_key.c @@ -167,7 +167,7 @@ VbPublicKey* PublicKeyReadKeyb(const char* filename, uint64_t algorithm, VbPublicKey* key; uint8_t* key_data; uint64_t key_size; - int expected_key_size; + uint64_t expected_key_size; if (algorithm >= kNumAlgorithms) { VBDEBUG(("PublicKeyReadKeyb() called with invalid algorithm!\n")); @@ -205,7 +205,7 @@ VbPublicKey* PublicKeyReadKeyb(const char* filename, uint64_t algorithm, VbPublicKey* PublicKeyRead(const char* filename) { VbPublicKey* key; uint64_t file_size; - int key_size; + uint64_t key_size; key = (VbPublicKey*)ReadFile(filename, &file_size); if (!key) |