diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-11-25 23:50:28 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-11-25 23:50:28 +0000 |
commit | a0f78c266b49e283f862a642ede1cc1ed439162a (patch) | |
tree | 9e5d35d70aa35b0a06248c5d1189e8eb274083b0 /libbb/xfuncs.c | |
parent | 4250ba3f536c66fa7caeb4e2a7110e69f69925de (diff) | |
download | busybox-w32-a0f78c266b49e283f862a642ede1cc1ed439162a.tar.gz busybox-w32-a0f78c266b49e283f862a642ede1cc1ed439162a.tar.bz2 busybox-w32-a0f78c266b49e283f862a642ede1cc1ed439162a.zip |
tee: fix bug: argv[-1] is a no-no!
bb_full_fd_action: optimize
die_if_ferror: "<applet>: filename" isn't a good err msg, add "..I/O error"
git-svn-id: svn://busybox.net/trunk/busybox@16669 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb/xfuncs.c')
-rw-r--r-- | libbb/xfuncs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index 1dbd7521b..773e718b8 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c | |||
@@ -124,7 +124,7 @@ int ndelay_on(int fd) | |||
124 | } | 124 | } |
125 | 125 | ||
126 | // Die with an error message if we can't write the entire buffer. | 126 | // Die with an error message if we can't write the entire buffer. |
127 | void xwrite(int fd, void *buf, size_t count) | 127 | void xwrite(int fd, const void *buf, size_t count) |
128 | { | 128 | { |
129 | if (count) { | 129 | if (count) { |
130 | ssize_t size = full_write(fd, buf, count); | 130 | ssize_t size = full_write(fd, buf, count); |
@@ -146,7 +146,7 @@ off_t xlseek(int fd, off_t offset, int whence) | |||
146 | void die_if_ferror(FILE *fp, const char *fn) | 146 | void die_if_ferror(FILE *fp, const char *fn) |
147 | { | 147 | { |
148 | if (ferror(fp)) { | 148 | if (ferror(fp)) { |
149 | bb_error_msg_and_die("%s", fn); | 149 | bb_error_msg_and_die("%s: I/O error", fn); |
150 | } | 150 | } |
151 | } | 151 | } |
152 | 152 | ||