From c6f188def8c5496dbd65c9be6ca3050286db7227 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 26 Oct 2006 00:37:00 +0000 Subject: silly size savings and capitalization fixes --- util-linux/fdisk.c | 10 +++++----- util-linux/fdisk_osf.c | 4 ++-- util-linux/fsck_minix.c | 4 ++-- util-linux/getopt.c | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'util-linux') diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c index 3061f0d..40a8d1b 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 17267d5..71cf138 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 a2ca7a5..3ebc58b 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 02bb218..17f3c42 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; } -- cgit v1.1