summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Ryleev <gmar@google.com>2016-02-10 14:41:13 -0800
committerMichael Ryleev <gmar@google.com>2016-02-10 15:12:48 -0800
commit78e7a8358749bfec20540f72bb65db870b464c14 (patch)
tree2a6c8702088a06f176efa69a48e3458619e1029d
parentc11d8d383d50b3c2743b0c71b3d7a4486ce62b61 (diff)
downloadgatekeeper-78e7a8358749bfec20540f72bb65db870b464c14.tar.gz
Fix white space formatting
Change-Id: If8dfe5a39d3fbbae81cd7bc5aa75e138a93e856b
-rw-r--r--trusty_gatekeeper.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/trusty_gatekeeper.cpp b/trusty_gatekeeper.cpp
index 26a8a3a..90bb6fa 100644
--- a/trusty_gatekeeper.cpp
+++ b/trusty_gatekeeper.cpp
@@ -127,14 +127,14 @@ bool TrustyGateKeeper::GetAuthTokenKey(const uint8_t **auth_token_key,
keymaster_session_t session = (keymaster_session_t) rc;
uint8_t *key = NULL;
- uint32_t local_length = 0;
+ uint32_t local_length = 0;
rc = keymaster_get_auth_token_key(session, &key, &local_length);
keymaster_close(session);
if (rc == NO_ERROR) {
*auth_token_key = key;
- *length = local_length;
+ *length = local_length;
return true;
} else {
return false;
@@ -189,7 +189,7 @@ uint64_t TrustyGateKeeper::GetMillisecondsSinceBoot() const {
bool TrustyGateKeeper::GetSecureFailureRecord(uint32_t uid, secure_id_t user_id,
failure_record_t *record) {
- storage_session_t session;
+ storage_session_t session;
int rc = storage_open_session(&session);
if (rc < 0) {
TLOGE("Error: [%d] opening storage session\n", rc);
@@ -199,7 +199,7 @@ bool TrustyGateKeeper::GetSecureFailureRecord(uint32_t uid, secure_id_t user_id,
char id[STORAGE_ID_LENGTH_MAX];
memset(id, 0, sizeof(id));
- file_handle_t handle;
+ file_handle_t handle;
snprintf(id, STORAGE_ID_LENGTH_MAX, GATEKEEPER_PREFIX "%u", uid);
rc = storage_open_file(session, &handle, id, 0);
if (rc < 0) {
@@ -250,7 +250,7 @@ bool TrustyGateKeeper::ClearFailureRecord(uint32_t uid, secure_id_t user_id, boo
}
bool TrustyGateKeeper::WriteSecureFailureRecord(uint32_t uid, failure_record_t *record) {
- storage_session_t session;
+ storage_session_t session;
long rc = storage_open_session(&session);
if (rc < 0) {
TLOGE("Error: [%d] failed to open storage session\n", rc);
@@ -261,7 +261,7 @@ bool TrustyGateKeeper::WriteSecureFailureRecord(uint32_t uid, failure_record_t *
memset(id, 0, sizeof(id));
snprintf(id, STORAGE_ID_LENGTH_MAX, GATEKEEPER_PREFIX "%u", uid);
- file_handle_t handle;
+ file_handle_t handle;
rc = storage_open_file(session, &handle, id, STORAGE_OPEN_CREATE);
if (rc < 0) {
TLOGE("Error: [%d] failed to open storage object %s\n", rc, id);