summaryrefslogtreecommitdiffstats
path: root/libutils
diff options
context:
space:
mode:
authorSasha Levitskiy <sanek@google.com>2014-04-10 17:10:21 -0700
committerSasha Levitskiy <sanek@google.com>2014-04-11 16:15:46 -0700
commitcdc1cfb3e51f3caddc1f290b46dc789c036f22ed (patch)
tree4ba56b89ded1fbcf8d8f1dbe75a7d3844f713739 /libutils
parent822b1a024d058641be9aefa14da794f09755ce35 (diff)
downloadsystem_core-cdc1cfb3e51f3caddc1f290b46dc789c036f22ed.zip
system_core-cdc1cfb3e51f3caddc1f290b46dc789c036f22ed.tar.gz
system_core-cdc1cfb3e51f3caddc1f290b46dc789c036f22ed.tar.bz2
Cleanup: warning fixit.
bootable/recovery has a dependent commit: I9adb470b04e4301989d128c9c3097b21b4dea431 Change-Id: Icf23e659265d71d5226d527c2b40cfbc132320ee Signed-off-by: Sasha Levitskiy <sanek@google.com>
Diffstat (limited to 'libutils')
-rw-r--r--libutils/tests/BasicHashtable_test.cpp2
-rw-r--r--libutils/tests/LruCache_test.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/libutils/tests/BasicHashtable_test.cpp b/libutils/tests/BasicHashtable_test.cpp
index 7dcf750..a61b1e1 100644
--- a/libutils/tests/BasicHashtable_test.cpp
+++ b/libutils/tests/BasicHashtable_test.cpp
@@ -397,7 +397,7 @@ TEST_F(BasicHashtableTest, Next_WhenNonEmpty_IteratesOverAllEntries) {
const SimpleEntry& entry = h.entryAt(index);
ASSERT_GE(entry.key, 0);
ASSERT_LT(entry.key, N);
- ASSERT_EQ(false, set[entry.key]);
+ ASSERT_FALSE(set[entry.key]);
ASSERT_EQ(entry.key * 10, entry.value);
set[entry.key] = true;
diff --git a/libutils/tests/LruCache_test.cpp b/libutils/tests/LruCache_test.cpp
index e573952..bcbea32 100644
--- a/libutils/tests/LruCache_test.cpp
+++ b/libutils/tests/LruCache_test.cpp
@@ -184,7 +184,7 @@ TEST_F(LruCacheTest, StressTest) {
for (size_t i = 0; i < kNumKeys; i++) {
strings[i] = (char *)malloc(16);
- sprintf(strings[i], "%d", i);
+ sprintf(strings[i], "%zu", i);
}
srandom(12345);