aboutsummaryrefslogtreecommitdiff
path: root/src/lib/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/init.c')
-rw-r--r--src/lib/init.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/lib/init.c b/src/lib/init.c
index 96b0cbec..cea006e8 100644
--- a/src/lib/init.c
+++ b/src/lib/init.c
@@ -119,6 +119,37 @@ MHD_check_global_init_ (void)
119 119
120 120
121/** 121/**
122 * Default implementation of the panic function,
123 * prints an error message and aborts.
124 *
125 * @param cls unused
126 * @param file name of the file with the problem
127 * @param line line number with the problem
128 * @param reason error message with details
129 */
130static void
131mhd_panic_std (void *cls,
132 const char *file,
133 unsigned int line,
134 const char *reason)
135{
136 (void)cls; /* Mute compiler warning. */
137#ifdef HAVE_MESSAGES
138 fprintf (stderr,
139 _("Fatal error in GNU libmicrohttpd %s:%u: %s\n"),
140 file,
141 line,
142 reason);
143#else /* ! HAVE_MESSAGES */
144 (void)file; /* Mute compiler warning. */
145 (void)line; /* Mute compiler warning. */
146 (void)reason; /* Mute compiler warning. */
147#endif
148 abort ();
149}
150
151
152/**
122 * Initialize do setup work. 153 * Initialize do setup work.
123 */ 154 */
124void 155void