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 /include | |
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 'include')
-rw-r--r-- | include/libbb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index a8463ae49..d76571b58 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -677,7 +677,9 @@ extern void bb_show_usage(void) ATTRIBUTE_NORETURN ATTRIBUTE_EXTERNALLY_VISIBLE; | |||
677 | extern void bb_error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); | 677 | extern void bb_error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); |
678 | extern void bb_error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); | 678 | extern void bb_error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); |
679 | extern void bb_perror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); | 679 | extern void bb_perror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); |
680 | extern void bb_simple_perror_msg(const char *s); | ||
680 | extern void bb_perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); | 681 | extern void bb_perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); |
682 | extern void bb_simple_perror_msg_and_die(const char *s) __attribute__ ((noreturn)); | ||
681 | extern void bb_herror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); | 683 | extern void bb_herror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); |
682 | extern void bb_herror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); | 684 | extern void bb_herror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); |
683 | extern void bb_perror_nomsg_and_die(void) ATTRIBUTE_NORETURN; | 685 | extern void bb_perror_nomsg_and_die(void) ATTRIBUTE_NORETURN; |
@@ -1185,7 +1187,6 @@ extern const char bb_default_login_shell[]; | |||
1185 | #include <dmalloc.h> | 1187 | #include <dmalloc.h> |
1186 | #endif | 1188 | #endif |
1187 | 1189 | ||
1188 | |||
1189 | #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) | 1190 | #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) |
1190 | 1191 | ||
1191 | #endif /* __LIBBUSYBOX_H__ */ | 1192 | #endif /* __LIBBUSYBOX_H__ */ |