aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-10-01 11:58:38 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-10-01 11:58:38 +0000
commit0c97c9d43707da745fe2bc62ab2a69497ceaf666 (patch)
tree267d0feb99f457b68c09315b3f3aebe8dfd6d411 /util-linux
parentd65ea39ffc7503807fa95e8840c012a80c83e4f3 (diff)
downloadbusybox-w32-0c97c9d43707da745fe2bc62ab2a69497ceaf666.tar.gz
busybox-w32-0c97c9d43707da745fe2bc62ab2a69497ceaf666.tar.bz2
busybox-w32-0c97c9d43707da745fe2bc62ab2a69497ceaf666.zip
'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>.
263 bytes saved.
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/mount.c2
-rw-r--r--util-linux/setarch.c2
-rw-r--r--util-linux/swaponoff.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index ea3300176..10ada5426 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -1655,7 +1655,7 @@ int mount_main(int argc, char **argv)
1655 && (i & (MS_SHARED | MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE)) 1655 && (i & (MS_SHARED | MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE))
1656 ) { 1656 ) {
1657 rc = mount("", argv[0], "", i, ""); 1657 rc = mount("", argv[0], "", i, "");
1658 if (rc) bb_perror_msg_and_die("%s", argv[0]); 1658 if (rc) bb_simple_perror_msg_and_die(argv[0]);
1659 goto clean_up; 1659 goto clean_up;
1660 } 1660 }
1661 1661
diff --git a/util-linux/setarch.c b/util-linux/setarch.c
index 2fb47f9e8..08294e55c 100644
--- a/util-linux/setarch.c
+++ b/util-linux/setarch.c
@@ -44,5 +44,5 @@ retry:
44 BB_EXECVP(argv[0], argv); 44 BB_EXECVP(argv[0], argv);
45 } 45 }
46 46
47 bb_perror_msg_and_die("%s", argv[0]); 47 bb_simple_perror_msg_and_die(argv[0]);
48} 48}
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c
index 73fe105a9..db43aa52a 100644
--- a/util-linux/swaponoff.c
+++ b/util-linux/swaponoff.c
@@ -31,7 +31,7 @@ static int swap_enable_disable(char *device)
31 status = swapoff(device); 31 status = swapoff(device);
32 32
33 if (status != 0) { 33 if (status != 0) {
34 bb_perror_msg("%s", device); 34 bb_simple_perror_msg(device);
35 return 1; 35 return 1;
36 } 36 }
37 37