From d2a9ddeb6cc58284996fbc5367877c99fee8914e Mon Sep 17 00:00:00 2001 From: Nguyễn Thái Ngọc Duy Date: Sun, 10 May 2009 20:10:13 +1000 Subject: general warning cleanup --- libbb/git.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libbb/git.h') diff --git a/libbb/git.h b/libbb/git.h index 3274af34d..07ef93bf4 100644 --- a/libbb/git.h +++ b/libbb/git.h @@ -1,4 +1,7 @@ ssize_t write_in_full(int fd, const void *buf, size_t count); +void *xcalloc(size_t nmemb, size_t size); +ssize_t _xwrite(int fd, const void *buf, size_t len); +ssize_t _xread(int fd, void *buf, size_t len); #define alloc_nr(x) (((x)+16)*3/2) @@ -19,3 +22,5 @@ static inline int is_absolute_path(const char *path) } #define NORETURN ATTRIBUTE_NORETURN +#define die bb_error_msg_and_die +#define error(...) fprintf(stderr, __VA_ARGS__) -- cgit v1.2.3-55-g6feb