summaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDenis Vlasenko2006-10-26 00:37:00 +0000
committerDenis Vlasenko2006-10-26 00:37:00 +0000
commitc6f188def8c5496dbd65c9be6ca3050286db7227 (patch)
treed8e1e56c728628c15f66cb88a6e54f368c806939 /util-linux
parente63a0dee9e559110bcaec494ae5e7fc78c4141c7 (diff)
downloadbusybox-c6f188def8c5496dbd65c9be6ca3050286db7227.zip
busybox-c6f188def8c5496dbd65c9be6ca3050286db7227.tar.gz
silly size savings and capitalization fixes
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/fdisk.c10
-rw-r--r--util-linux/fdisk_osf.c4
-rw-r--r--util-linux/fsck_minix.c4
-rw-r--r--util-linux/getopt.c2
4 files changed, 10 insertions, 10 deletions
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;
}