util.cpp (tcpflow-1.4.5) | : | util.cpp (tcpflow-1.5.0) | ||
---|---|---|---|---|
skipping to change at line 171 | skipping to change at line 171 | |||
void debug_real(const char *fmt, ...) | void debug_real(const char *fmt, ...) | |||
{ | { | |||
va_list ap; | va_list ap; | |||
va_start(ap, fmt); | va_start(ap, fmt); | |||
print_debug_message(fmt, ap); | print_debug_message(fmt, ap); | |||
va_end(ap); | va_end(ap); | |||
} | } | |||
/* Print a debugging or informatioal message, then exit */ | /* Print a debugging or informatioal message, then exit */ | |||
void die(const char *fmt, ...) | [[noreturn]] void die(const char *fmt, ...) | |||
{ | { | |||
va_list ap; | va_list ap; | |||
va_start(ap, fmt); | va_start(ap, fmt); | |||
print_debug_message(fmt, ap); | print_debug_message(fmt, ap); | |||
exit(1); | exit(1); | |||
} | } | |||
/* An attempt at making signal() portable. | /* An attempt at making signal() portable. | |||
* | * | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |