diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-01 11:58:38 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-01 11:58:38 +0000 |
commit | 0c97c9d43707da745fe2bc62ab2a69497ceaf666 (patch) | |
tree | 267d0feb99f457b68c09315b3f3aebe8dfd6d411 /coreutils/du.c | |
parent | d65ea39ffc7503807fa95e8840c012a80c83e4f3 (diff) | |
download | busybox-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 'coreutils/du.c')
-rw-r--r-- | coreutils/du.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/du.c b/coreutils/du.c index b5e68d8f8..2697acf13 100644 --- a/coreutils/du.c +++ b/coreutils/du.c | |||
@@ -67,7 +67,7 @@ static unsigned long du(const char *filename) | |||
67 | unsigned long sum; | 67 | unsigned long sum; |
68 | 68 | ||
69 | if (lstat(filename, &statbuf) != 0) { | 69 | if (lstat(filename, &statbuf) != 0) { |
70 | bb_perror_msg("%s", filename); | 70 | bb_simple_perror_msg(filename); |
71 | G.status = EXIT_FAILURE; | 71 | G.status = EXIT_FAILURE; |
72 | return 0; | 72 | return 0; |
73 | } | 73 | } |
@@ -85,7 +85,7 @@ static unsigned long du(const char *filename) | |||
85 | if (S_ISLNK(statbuf.st_mode)) { | 85 | if (S_ISLNK(statbuf.st_mode)) { |
86 | if (G.slink_depth > G.du_depth) { /* -H or -L */ | 86 | if (G.slink_depth > G.du_depth) { /* -H or -L */ |
87 | if (stat(filename, &statbuf) != 0) { | 87 | if (stat(filename, &statbuf) != 0) { |
88 | bb_perror_msg("%s", filename); | 88 | bb_simple_perror_msg(filename); |
89 | G.status = EXIT_FAILURE; | 89 | G.status = EXIT_FAILURE; |
90 | return 0; | 90 | return 0; |
91 | } | 91 | } |