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 /libbb/xfuncs.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 '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 2bf20f3a0..6d8eac4b6 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c | |||
@@ -704,13 +704,13 @@ int bb_ioctl_or_warn(int fd, int request, void *argp, const char *ioctl_name) | |||
704 | 704 | ||
705 | ret = ioctl(fd, request, argp); | 705 | ret = ioctl(fd, request, argp); |
706 | if (ret < 0) | 706 | if (ret < 0) |
707 | bb_perror_msg("%s", ioctl_name); | 707 | bb_simple_perror_msg(ioctl_name); |
708 | return ret; | 708 | return ret; |
709 | } | 709 | } |
710 | void bb_xioctl(int fd, int request, void *argp, const char *ioctl_name) | 710 | void bb_xioctl(int fd, int request, void *argp, const char *ioctl_name) |
711 | { | 711 | { |
712 | if (ioctl(fd, request, argp) < 0) | 712 | if (ioctl(fd, request, argp) < 0) |
713 | bb_perror_msg_and_die("%s", ioctl_name); | 713 | bb_simple_perror_msg_and_die(ioctl_name); |
714 | } | 714 | } |
715 | #else | 715 | #else |
716 | int bb_ioctl_or_warn(int fd, int request, void *argp) | 716 | int bb_ioctl_or_warn(int fd, int request, void *argp) |