summaryrefslogtreecommitdiff
path: root/archival/unzip.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-10-01 12:05:12 +0000
committerDenis Vlasenko2007-10-01 12:05:12 +0000
commitfeb7ae7f01e13dce31118e5a58b09b237d25e58c (patch)
treeb36f1a78441f586aa8bf5a2c8b055296d30c2777 /archival/unzip.c
parent0c97c9d43707da745fe2bc62ab2a69497ceaf666 (diff)
downloadbusybox-feb7ae7f01e13dce31118e5a58b09b237d25e58c.zip
busybox-feb7ae7f01e13dce31118e5a58b09b237d25e58c.tar.gz
printf("%s\n") -> puts()
Diffstat (limited to 'archival/unzip.c')
-rw-r--r--archival/unzip.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/archival/unzip.c b/archival/unzip.c
index 97c743c..21d4c25 100644
--- a/archival/unzip.c
+++ b/archival/unzip.c
@@ -263,9 +263,9 @@ int unzip_main(int argc, char **argv)
total_size += zip_header.formatted.ucmpsize;
if (listing) { /* List entry */
- if (verbose) {
- unsigned int dostime = zip_header.formatted.modtime | (zip_header.formatted.moddate << 16);
- printf("%9u %02u-%02u-%02u %02u:%02u %s\n",
+ if (verbose) {
+ unsigned int dostime = zip_header.formatted.modtime | (zip_header.formatted.moddate << 16);
+ printf("%9u %02u-%02u-%02u %02u:%02u %s\n",
zip_header.formatted.ucmpsize,
(dostime & 0x01e00000) >> 21,
(dostime & 0x001f0000) >> 16,
@@ -273,12 +273,12 @@ int unzip_main(int argc, char **argv)
(dostime & 0x0000f800) >> 11,
(dostime & 0x000007e0) >> 5,
dst_fn);
- total_entries++;
- } else {
- /* short listing -- filenames only */
- printf("%s\n", dst_fn);
- }
- i = 'n';
+ total_entries++;
+ } else {
+ /* short listing -- filenames only */
+ puts(dst_fn);
+ }
+ i = 'n';
} else if (dst_fd == STDOUT_FILENO) { /* Extracting to STDOUT */
i = -1;
} else if (last_char_is(dst_fn, '/')) { /* Extract directory */