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,
(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 */
printf("%s%-*s", matches[n],
(int)(column_width - strlen(matches[n])), "");
}
- printf("%s\n", matches[n]);
+ puts(matches[n]);
}
}
jj >>= 1;
}
}
- printf("%s\n", kk ? "" : "\n\tLikely used CD-ROM ATAPI-1");
+ puts(kk ? "" : "\n\tLikely used CD-ROM ATAPI-1");
/* the cdrom stuff is more like ATA-2 than anything else, so: */
like_std = 2;
}
unsigned cnt = 0;
printf("%-10s %s\n", header, hostname);
- // printf("%s\n", cur->ai_canonname); ?
+ // puts(cur->ai_canonname); ?
while (cur) {
char *dotted, *revhost;
dotted = xmalloc_sockaddr2dotted_noport(cur->ai_addr);