comparison dbutil.h @ 744:504f33c684b5 kexguess

Add sentinel attribute
author Matt Johnston <matt@ucc.asn.au>
date Wed, 03 Apr 2013 00:32:05 +0800
parents 9a5438271556
children 7dcb46da72d9 a625f9e135a4
comparison
equal deleted inserted replaced
743:09c5eb71ec96 744:504f33c684b5
33 void startsyslog(); 33 void startsyslog();
34 #endif 34 #endif
35 35
36 #ifdef __GNUC__ 36 #ifdef __GNUC__
37 #define ATTRIB_PRINTF(fmt,args) __attribute__((format(printf, fmt, args))) 37 #define ATTRIB_PRINTF(fmt,args) __attribute__((format(printf, fmt, args)))
38 #define ATTRIB_NORETURN __attribute__((noreturn))
39 #define ATTRIB_SENTINEL __attribute__((sentinel))
38 #else 40 #else
39 #define ATTRIB_PRINTF(fmt,args) 41 #define ATTRIB_PRINTF(fmt,args)
40 #endif
41
42 #ifdef __GNUC__
43 #define ATTRIB_NORETURN __attribute__((noreturn))
44 #else
45 #define ATTRIB_NORETURN 42 #define ATTRIB_NORETURN
43 #define ATTRIB_SENTINEL
46 #endif 44 #endif
47 45
48 extern void (*_dropbear_exit)(int exitcode, const char* format, va_list param) ATTRIB_NORETURN; 46 extern void (*_dropbear_exit)(int exitcode, const char* format, va_list param) ATTRIB_NORETURN;
49 extern void (*_dropbear_log)(int priority, const char* format, va_list param); 47 extern void (*_dropbear_log)(int priority, const char* format, va_list param);
50 48