Mercurial > dropbear
diff dbutil.c @ 614:00eca37e47e8
Add noreturn and format attribute hints for some functions.
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 07 Apr 2011 12:59:18 +0000 |
parents | a98a2138364a |
children | e3ac0a426bd0 |
line wrap: on
line diff
--- a/dbutil.c Thu Apr 07 12:34:44 2011 +0000 +++ b/dbutil.c Thu Apr 07 12:59:18 2011 +0000 @@ -57,11 +57,11 @@ #define MAX_FMT 100 static void generic_dropbear_exit(int exitcode, const char* format, - va_list param); + va_list param) ATTRIB_NORETURN; static void generic_dropbear_log(int priority, const char* format, va_list param); -void (*_dropbear_exit)(int exitcode, const char* format, va_list param) +void (*_dropbear_exit)(int exitcode, const char* format, va_list param) ATTRIB_NORETURN = generic_dropbear_exit; void (*_dropbear_log)(int priority, const char* format, va_list param) = generic_dropbear_log;