Allow building tests with Clang, and fix some bugs Clang diagnosed.
Change-Id: Ie213deadabdb9c84d4ea1d2f69b1beaa87165717
diff --git a/key_blob.cpp b/key_blob.cpp
index 1009e28..e1a9c49 100644
--- a/key_blob.cpp
+++ b/key_blob.cpp
@@ -37,7 +37,7 @@
KeyBlob::KeyBlob(const AuthorizationSet& enforced, const AuthorizationSet& unenforced,
const AuthorizationSet& hidden, const keymaster_key_blob_t& key,
- const keymaster_key_blob_t& master_key, uint8_t nonce[NONCE_LENGTH])
+ const keymaster_key_blob_t& master_key, const uint8_t nonce[NONCE_LENGTH])
: error_(KM_ERROR_OK), enforced_(enforced), unenforced_(unenforced), hidden_(hidden) {
if (enforced_.is_valid() == AuthorizationSet::ALLOCATION_FAILURE ||
unenforced_.is_valid() == AuthorizationSet::ALLOCATION_FAILURE ||