diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-26 00:37:00 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-26 00:37:00 +0000 |
commit | c6f188def8c5496dbd65c9be6ca3050286db7227 (patch) | |
tree | d8e1e56c728628c15f66cb88a6e54f368c806939 /util-linux | |
parent | e63a0dee9e559110bcaec494ae5e7fc78c4141c7 (diff) |
silly size savings and capitalization fixes
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/fdisk.c | 10 | ||||
-rw-r--r-- | util-linux/fdisk_osf.c | 4 | ||||
-rw-r--r-- | util-linux/fsck_minix.c | 4 | ||||
-rw-r--r-- | util-linux/getopt.c | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c index 3061f0d8d..40a8d1bae 100644 --- a/util-linux/fdisk.c +++ b/util-linux/fdisk.c @@ -2534,13 +2534,13 @@ print_buffer(char *pbuffer) printf("0x%03X:", i); printf(" %02X", (unsigned char) pbuffer[i]); if (l == MAX_PER_LINE - 1) { - printf("\n"); + puts(""); l = -1; } } if (l > 0) - printf("\n"); - printf("\n"); + puts(""); + puts(""); } @@ -2650,7 +2650,7 @@ xselect(void) break; case 'q': close(fd); - printf("\n"); + puts(""); exit(0); case 'r': return; @@ -3022,7 +3022,7 @@ int fdisk_main(int argc, char **argv) break; case 'q': close(fd); - printf("\n"); + puts(""); return 0; case 's': #ifdef CONFIG_FEATURE_SUN_LABEL diff --git a/util-linux/fdisk_osf.c b/util-linux/fdisk_osf.c index 17267d54b..71cf138ee 100644 --- a/util-linux/fdisk_osf.c +++ b/util-linux/fdisk_osf.c @@ -512,7 +512,7 @@ xbsd_print_disklabel(int show_all) printf(_(" ecc")); if (lp->d_flags & BSD_D_BADSECT) printf(_(" badsect")); - printf("\n"); + puts(""); /* On various machines the fields of *lp are short/int/long */ /* In order to avoid problems, we cast them all to long. */ printf(_("bytes/sector: %ld\n"), (long) lp->d_secsize); @@ -579,7 +579,7 @@ xbsd_print_disklabel(int show_all) printf("%22.22s", ""); break; } - printf("\n"); + puts(""); } } } diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c index a2ca7a566..3ebc58b1f 100644 --- a/util-linux/fsck_minix.c +++ b/util-linux/fsck_minix.c @@ -322,12 +322,12 @@ static int ask(const char *string, int def) int c; if (!repair) { - printf("\n"); + puts(""); errors_uncorrected = 1; return 0; } if (automatic) { - printf("\n"); + puts(""); if (!def) errors_uncorrected = 1; return def; diff --git a/util-linux/getopt.c b/util-linux/getopt.c index 02bb218b3..17f3c4297 100644 --- a/util-linux/getopt.c +++ b/util-linux/getopt.c @@ -172,7 +172,7 @@ int generate_output(char * argv[],int argc,const char *optstr, printf(" --"); while (optind < argc) printf(" %s",normalize(argv[optind++])); - printf("\n"); + puts(""); } return exit_code; } |