summaryrefslogtreecommitdiff
path: root/libs/androidfw/BackupHelpers.cpp
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-11-07 22:24:57 -0800
committerAndreas Gampe <agampe@google.com>2014-11-07 22:24:57 -0800
commit25df5fba3afff403c749bab7d1d5652c3b929e06 (patch)
tree6828c6d566c437c022ef366322587da248d67c6d /libs/androidfw/BackupHelpers.cpp
parent487ae9b8dc3e08c1a830d519a801a07cd59c8f2b (diff)
Frameworks/base: Fix more warnings
Exposed by switching the target to Clang, and GCC 4.9 used by MIPS. Change-Id: Icb79285ab2306c39c2d381e53ea2e643ee2d2947
Diffstat (limited to 'libs/androidfw/BackupHelpers.cpp')
-rw-r--r--libs/androidfw/BackupHelpers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/androidfw/BackupHelpers.cpp b/libs/androidfw/BackupHelpers.cpp
index 36a4cfef5243..c78593d23ed6 100644
--- a/libs/androidfw/BackupHelpers.cpp
+++ b/libs/androidfw/BackupHelpers.cpp
@@ -555,7 +555,7 @@ int write_tarfile(const String8& packageName, const String8& domain,
snprintf(buf + 124, 12, "%011llo", (isdir) ? 0LL : s.st_size);
// [ 136 : 12 ] last mod time as a UTC time_t
- snprintf(buf + 136, 12, "%0lo", s.st_mtime);
+ snprintf(buf + 136, 12, "%0lo", (unsigned long)s.st_mtime);
// [ 156 : 1 ] link/file type
uint8_t type;