summaryrefslogtreecommitdiffstats
path: root/tools/obbtool
diff options
context:
space:
mode:
authorKoushik Dutta <koushd@gmail.com>2013-07-10 11:30:40 -0700
committerKoushik Dutta <koushd@gmail.com>2013-07-10 11:30:40 -0700
commitc2ef581d8a77ef36e02e98cca5e3baf625f9cfb3 (patch)
tree76d24c21c260abb20d56b5d6e77af13d1afd1822 /tools/obbtool
parent34b32f417964496d14d043368eac521159247ea7 (diff)
downloadframeworks_base-c2ef581d8a77ef36e02e98cca5e3baf625f9cfb3.zip
frameworks_base-c2ef581d8a77ef36e02e98cca5e3baf625f9cfb3.tar.gz
frameworks_base-c2ef581d8a77ef36e02e98cca5e3baf625f9cfb3.tar.bz2
Fixes for clang:
PackageInfo is a class, not a struct. String16 is contained in the android namespace. Do not namespace prefix it within the android namespace. Explicitly specify which std classes are necessary to prevent ambiguous type errors. (map, set) Change-Id: I0d01477a976e770821ebae8847f8d11b132a15d6
Diffstat (limited to 'tools/obbtool')
-rw-r--r--tools/obbtool/Main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/obbtool/Main.cpp b/tools/obbtool/Main.cpp
index b2152e8..64808c0 100644
--- a/tools/obbtool/Main.cpp
+++ b/tools/obbtool/Main.cpp
@@ -89,7 +89,7 @@ void usage(void)
" Prints the OBB signature information of a file.\n\n", gProgName);
}
-void doAdd(const char* filename, struct PackageInfo* info) {
+void doAdd(const char* filename, PackageInfo* info) {
ObbFile *obb = new ObbFile();
if (obb->readFrom(filename)) {
fprintf(stderr, "ERROR: %s: OBB signature already present\n", filename);
@@ -182,7 +182,7 @@ int main(int argc, char* const argv[])
{
int opt;
int option_index = 0;
- struct PackageInfo package_info;
+ PackageInfo package_info;
int result = 1; // pessimistically assume an error.