aboutsummaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/libbb.h3
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;
677extern void bb_error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); 677extern void bb_error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2)));
678extern void bb_error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); 678extern void bb_error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2)));
679extern void bb_perror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); 679extern void bb_perror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2)));
680extern void bb_simple_perror_msg(const char *s);
680extern void bb_perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); 681extern void bb_perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2)));
682extern void bb_simple_perror_msg_and_die(const char *s) __attribute__ ((noreturn));
681extern void bb_herror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); 683extern void bb_herror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2)));
682extern void bb_herror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); 684extern void bb_herror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2)));
683extern void bb_perror_nomsg_and_die(void) ATTRIBUTE_NORETURN; 685extern 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__ */