diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-09-22 09:25:18 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-09-22 09:25:18 +0000 |
commit | 4acefd453fe913af72310ec8f7203493e2b485ec (patch) | |
tree | 395e8e854600781f25b3a490f3c362edc402f640 /src/microhttpd/test_shutdown_select.c | |
parent | 4c25471bfdcc8f7568ad58f1fa30da3e9e8e77b5 (diff) | |
download | libmicrohttpd-4acefd453fe913af72310ec8f7203493e2b485ec.tar.gz libmicrohttpd-4acefd453fe913af72310ec8f7203493e2b485ec.zip |
simplify error handling by baking it into the macros
Diffstat (limited to 'src/microhttpd/test_shutdown_select.c')
-rw-r--r-- | src/microhttpd/test_shutdown_select.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/microhttpd/test_shutdown_select.c b/src/microhttpd/test_shutdown_select.c index a40ac9cc..63c0c53c 100644 --- a/src/microhttpd/test_shutdown_select.c +++ b/src/microhttpd/test_shutdown_select.c | |||
@@ -89,6 +89,15 @@ | |||
89 | 89 | ||
90 | static _MHD_bool check_err; | 90 | static _MHD_bool check_err; |
91 | 91 | ||
92 | |||
93 | void | ||
94 | MHD_PANIC (char *msg) | ||
95 | { | ||
96 | fprintf (stderr, "%s", msg); | ||
97 | abort (); | ||
98 | } | ||
99 | |||
100 | |||
92 | static _MHD_bool | 101 | static _MHD_bool |
93 | has_in_name(const char *prog_name, const char *marker) | 102 | has_in_name(const char *prog_name, const char *marker) |
94 | { | 103 | { |