diff options
| author | 2018-05-14 11:16:30 -0700 | |
|---|---|---|
| committer | 2018-05-14 11:16:30 -0700 | |
| commit | 2da359c5464d68a74279919ee4741c7b22a7ef0b (patch) | |
| tree | 02ba0e4c3143f617cb08dca906d57b5c4cb2f1e4 /tools/aapt/XMLNode.cpp | |
| parent | 36b515e32bfa19b980194364793c585df2929e01 (diff) | |
| parent | 659a13121c2114dcfb6a7e083ef56a7f1d626406 (diff) | |
Merge "When suid_dumpable == 2, set dumpable to 0 for apps"
am: 659a13121c
Change-Id: I02d210fd4d9e13a3f548411cea57a4f2e37c7481
Diffstat (limited to 'tools/aapt/XMLNode.cpp')
| -rw-r--r-- | tools/aapt/XMLNode.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/aapt/XMLNode.cpp b/tools/aapt/XMLNode.cpp index 15ec4afa52dd..861efd5077fe 100644 --- a/tools/aapt/XMLNode.cpp +++ b/tools/aapt/XMLNode.cpp @@ -16,13 +16,10 @@ #define O_BINARY 0 #endif -// SSIZE: mingw does not have signed size_t == ssize_t. // STATUST: mingw does seem to redefine UNKNOWN_ERROR from our enum value, so a cast is necessary. #if !defined(_WIN32) -# define SSIZE(x) x # define STATUST(x) x #else -# define SSIZE(x) (signed size_t)x # define STATUST(x) (status_t)x #endif @@ -1426,7 +1423,7 @@ status_t XMLNode::collect_attr_strings(StringPool* outPool, idx = outPool->add(attr.name); if (kIsDebug) { printf("Adding attr %s (resid 0x%08x) to pool: idx=%zd\n", - String8(attr.name).string(), id, SSIZE(idx)); + String8(attr.name).string(), id, idx); } if (id != 0) { while ((ssize_t)outResIds->size() <= idx) { @@ -1437,7 +1434,7 @@ status_t XMLNode::collect_attr_strings(StringPool* outPool, } attr.namePoolIdx = idx; if (kIsDebug) { - printf("String %s offset=0x%08zd\n", String8(attr.name).string(), SSIZE(idx)); + printf("String %s offset=0x%08zd\n", String8(attr.name).string(), idx); } } } |