mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
printf("%s\n") -> puts()
This commit is contained in:
parent
0c97c9d437
commit
feb7ae7f01
@ -263,9 +263,9 @@ int unzip_main(int argc, char **argv)
|
|||||||
total_size += zip_header.formatted.ucmpsize;
|
total_size += zip_header.formatted.ucmpsize;
|
||||||
|
|
||||||
if (listing) { /* List entry */
|
if (listing) { /* List entry */
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
unsigned int dostime = zip_header.formatted.modtime | (zip_header.formatted.moddate << 16);
|
unsigned int dostime = zip_header.formatted.modtime | (zip_header.formatted.moddate << 16);
|
||||||
printf("%9u %02u-%02u-%02u %02u:%02u %s\n",
|
printf("%9u %02u-%02u-%02u %02u:%02u %s\n",
|
||||||
zip_header.formatted.ucmpsize,
|
zip_header.formatted.ucmpsize,
|
||||||
(dostime & 0x01e00000) >> 21,
|
(dostime & 0x01e00000) >> 21,
|
||||||
(dostime & 0x001f0000) >> 16,
|
(dostime & 0x001f0000) >> 16,
|
||||||
@ -273,12 +273,12 @@ int unzip_main(int argc, char **argv)
|
|||||||
(dostime & 0x0000f800) >> 11,
|
(dostime & 0x0000f800) >> 11,
|
||||||
(dostime & 0x000007e0) >> 5,
|
(dostime & 0x000007e0) >> 5,
|
||||||
dst_fn);
|
dst_fn);
|
||||||
total_entries++;
|
total_entries++;
|
||||||
} else {
|
} else {
|
||||||
/* short listing -- filenames only */
|
/* short listing -- filenames only */
|
||||||
printf("%s\n", dst_fn);
|
puts(dst_fn);
|
||||||
}
|
}
|
||||||
i = 'n';
|
i = 'n';
|
||||||
} else if (dst_fd == STDOUT_FILENO) { /* Extracting to STDOUT */
|
} else if (dst_fd == STDOUT_FILENO) { /* Extracting to STDOUT */
|
||||||
i = -1;
|
i = -1;
|
||||||
} else if (last_char_is(dst_fn, '/')) { /* Extract directory */
|
} else if (last_char_is(dst_fn, '/')) { /* Extract directory */
|
||||||
|
@ -92,7 +92,7 @@ int id_main(int argc, char **argv)
|
|||||||
if (getcon(&scontext)) {
|
if (getcon(&scontext)) {
|
||||||
bb_error_msg_and_die("can't get process context");
|
bb_error_msg_and_die("can't get process context");
|
||||||
}
|
}
|
||||||
printf("%s\n", scontext);
|
puts(scontext);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
/* exit */
|
/* exit */
|
||||||
|
@ -700,7 +700,7 @@ static void showfiles(void)
|
|||||||
printf("%s%-*s", matches[n],
|
printf("%s%-*s", matches[n],
|
||||||
(int)(column_width - strlen(matches[n])), "");
|
(int)(column_width - strlen(matches[n])), "");
|
||||||
}
|
}
|
||||||
printf("%s\n", matches[n]);
|
puts(matches[n]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -849,7 +849,7 @@ static void identify(uint16_t *val)
|
|||||||
jj >>= 1;
|
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: */
|
/* the cdrom stuff is more like ATA-2 than anything else, so: */
|
||||||
like_std = 2;
|
like_std = 2;
|
||||||
}
|
}
|
||||||
|
@ -69,7 +69,7 @@ static int print_host(const char *hostname, const char *header)
|
|||||||
unsigned cnt = 0;
|
unsigned cnt = 0;
|
||||||
|
|
||||||
printf("%-10s %s\n", header, hostname);
|
printf("%-10s %s\n", header, hostname);
|
||||||
// printf("%s\n", cur->ai_canonname); ?
|
// puts(cur->ai_canonname); ?
|
||||||
while (cur) {
|
while (cur) {
|
||||||
char *dotted, *revhost;
|
char *dotted, *revhost;
|
||||||
dotted = xmalloc_sockaddr2dotted_noport(cur->ai_addr);
|
dotted = xmalloc_sockaddr2dotted_noport(cur->ai_addr);
|
||||||
|
@ -17,7 +17,7 @@ static int print_matchpathcon(char *path, int noprint)
|
|||||||
if (!noprint)
|
if (!noprint)
|
||||||
printf("%s\t%s\n", path, buf);
|
printf("%s\t%s\n", path, buf);
|
||||||
else
|
else
|
||||||
printf("%s\n", buf);
|
puts(buf);
|
||||||
|
|
||||||
freecon(buf);
|
freecon(buf);
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -64,7 +64,7 @@ int losetup_main(int argc, char **argv)
|
|||||||
s = query_loop(dev);
|
s = query_loop(dev);
|
||||||
if (!s) {
|
if (!s) {
|
||||||
if (opt == 0x4) {
|
if (opt == 0x4) {
|
||||||
printf("%s\n", dev);
|
puts(dev);
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user