summaryrefslogtreecommitdiffstats
path: root/tools/zipalign/ZipAlign.cpp
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2015-02-26 17:57:55 +0000
committerNarayan Kamath <narayan@google.com>2015-02-27 14:17:17 +0000
commite0b8d19f3159edbeecb7eea4b3d18ffeca3dd33d (patch)
treec84badd1144b08e44248cb1681d5721099e5ae6c /tools/zipalign/ZipAlign.cpp
parent095c451541765c7efb9d5a8152f8ef15626ccedb (diff)
downloadbuild-e0b8d19f3159edbeecb7eea4b3d18ffeca3dd33d.zip
build-e0b8d19f3159edbeecb7eea4b3d18ffeca3dd33d.tar.gz
build-e0b8d19f3159edbeecb7eea4b3d18ffeca3dd33d.tar.bz2
Fix zipalign README file and usage strings.
Addresses comments from change 13e5965306. Change-Id: I0a2c0048781858d3aa06347a77220547cfcdcebe
Diffstat (limited to 'tools/zipalign/ZipAlign.cpp')
-rw-r--r--tools/zipalign/ZipAlign.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/zipalign/ZipAlign.cpp b/tools/zipalign/ZipAlign.cpp
index 191dd41..a2dfd02 100644
--- a/tools/zipalign/ZipAlign.cpp
+++ b/tools/zipalign/ZipAlign.cpp
@@ -33,21 +33,21 @@ void usage(void)
fprintf(stderr, "Copyright (C) 2009 The Android Open Source Project\n\n");
fprintf(stderr,
"Usage: zipalign [-f] [-p] [-v] [-z] <align> infile.zip outfile.zip\n"
- " zipalign -c [-v] <align> infile.zip [list of files]\n\n" );
+ " zipalign -c [-v] <align> infile.zip\n\n" );
fprintf(stderr,
" <align>: alignment in bytes, e.g. '4' provides 32-bit alignment\n");
fprintf(stderr, " -c: check alignment only (does not modify file)\n");
fprintf(stderr, " -f: overwrite existing outfile.zip\n");
- fprintf(stderr, " -p: page align stored shared object: files\n");
+ fprintf(stderr, " -p: page align stored shared object files\n");
fprintf(stderr, " -v: verbose output\n");
fprintf(stderr, " -z: recompress using Zopfli\n");
}
-static const int kPageAlignment = 4096;
-
static int getAlignment(bool pageAlignSharedLibs, int defaultAlignment,
ZipEntry* pEntry) {
+ static const int kPageAlignment = 4096;
+
if (!pageAlignSharedLibs) {
return defaultAlignment;
}