comparison 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
comparison
equal deleted inserted replaced
613:8cd04e707171 614:00eca37e47e8
55 #include "atomicio.h" 55 #include "atomicio.h"
56 56
57 #define MAX_FMT 100 57 #define MAX_FMT 100
58 58
59 static void generic_dropbear_exit(int exitcode, const char* format, 59 static void generic_dropbear_exit(int exitcode, const char* format,
60 va_list param); 60 va_list param) ATTRIB_NORETURN;
61 static void generic_dropbear_log(int priority, const char* format, 61 static void generic_dropbear_log(int priority, const char* format,
62 va_list param); 62 va_list param);
63 63
64 void (*_dropbear_exit)(int exitcode, const char* format, va_list param) 64 void (*_dropbear_exit)(int exitcode, const char* format, va_list param) ATTRIB_NORETURN
65 = generic_dropbear_exit; 65 = generic_dropbear_exit;
66 void (*_dropbear_log)(int priority, const char* format, va_list param) 66 void (*_dropbear_log)(int priority, const char* format, va_list param)
67 = generic_dropbear_log; 67 = generic_dropbear_log;
68 68
69 #ifdef DEBUG_TRACE 69 #ifdef DEBUG_TRACE