summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-11-07 16:28:19 -0800
committerAndreas Gampe <agampe@google.com>2014-11-08 01:04:45 +0000
commitebee1379eaf4306eb2de9437844009aa7eb18c28 (patch)
tree165544f1e460464e14c41e8b88f73107e1668494 /cmds
parent487ae9b8dc3e08c1a830d519a801a07cd59c8f2b (diff)
downloadframeworks_base-ebee1379eaf4306eb2de9437844009aa7eb18c28.zip
frameworks_base-ebee1379eaf4306eb2de9437844009aa7eb18c28.tar.gz
frameworks_base-ebee1379eaf4306eb2de9437844009aa7eb18c28.tar.bz2
Frameworks/base: Fix two warnings in cmds
Change-Id: Ifb9c7fb7a2d28c13010ddc186bea5f5f0daefb4a
Diffstat (limited to 'cmds')
-rw-r--r--cmds/backup/backup.cpp2
-rw-r--r--cmds/idmap/create.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmds/backup/backup.cpp b/cmds/backup/backup.cpp
index 03ceffa..8d9b528 100644
--- a/cmds/backup/backup.cpp
+++ b/cmds/backup/backup.cpp
@@ -75,7 +75,7 @@ static int perform_list(const char* filename)
size_t dataSize;
err = reader.ReadEntityHeader(&key, &dataSize);
if (err == 0) {
- printf(" entity: %s (%d bytes)\n", key.string(), dataSize);
+ printf(" entity: %s (%zu bytes)\n", key.string(), dataSize);
} else {
printf(" Error reading entity header\n");
}
diff --git a/cmds/idmap/create.cpp b/cmds/idmap/create.cpp
index 28da3d6..7a501a4 100644
--- a/cmds/idmap/create.cpp
+++ b/cmds/idmap/create.cpp
@@ -78,7 +78,7 @@ fail:
if (fstat(idmap_fd, &st) == -1) {
return true;
}
- if (st.st_size < N) {
+ if (st.st_size < static_cast<off_t>(N)) {
// file is empty or corrupt
return true;
}