aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-11-15 21:12:24 -0600
committerRob Landley <rob@landley.net>2007-11-15 21:12:24 -0600
commitefa93b987a355385d0b1a1ac4e3a0e25db63b494 (patch)
treee1a5a15c7fa4f802d373c82171e8742838cac7de /lib/lib.h
parentac442b497bc7d023b36595b6d072d4499f3485f4 (diff)
downloadtoybox-efa93b987a355385d0b1a1ac4e3a0e25db63b494.tar.gz
Add noreturn mark to [p]error_exit(), suggested by Charlie Shepherd.
Diffstat (limited to 'lib/lib.h')
-rw-r--r--lib/lib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lib.h b/lib/lib.h
index 6fce34c8..07f4a6d8 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -43,8 +43,8 @@ void strlcpy(char *dest, char *src, size_t size);
void verror_msg(char *msg, int err, va_list va);
void error_msg(char *msg, ...);
void perror_msg(char *msg, ...);
-void error_exit(char *msg, ...);
-void perror_exit(char *msg, ...);
+void error_exit(char *msg, ...) noreturn;
+void perror_exit(char *msg, ...) noreturn;
void *xmalloc(size_t size);
void *xzalloc(size_t size);
void *xrealloc(void *ptr, size_t size);