mirror of
https://github.com/yrutschle/sslh.git
synced 2025-06-18 16:12:55 +03:00
migrate generic system call failure checks to new log system
This commit is contained in:
parent
66caf8a31b
commit
70b31a48d9
4
common.h
4
common.h
@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
#define CHECK_RES_DIE(res, str) \
|
#define CHECK_RES_DIE(res, str) \
|
||||||
if (res == -1) { \
|
if (res == -1) { \
|
||||||
fprintf(stderr, "%s:%d:", __FILE__, __LINE__); \
|
print_message(msg_system_error, "%s:%d:", __FILE__, __LINE__); \
|
||||||
perror(str); \
|
perror(str); \
|
||||||
exit(1); \
|
exit(1); \
|
||||||
}
|
}
|
||||||
@ -53,7 +53,7 @@
|
|||||||
|
|
||||||
#define CHECK_ALLOC(a, str) \
|
#define CHECK_ALLOC(a, str) \
|
||||||
if (!a) { \
|
if (!a) { \
|
||||||
fprintf(stderr, "%s:%d:", __FILE__, __LINE__); \
|
print_message(msg_system_error, "%s:%d:", __FILE__, __LINE__); \
|
||||||
perror(str); \
|
perror(str); \
|
||||||
exit(1); \
|
exit(1); \
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user