static void
send_error (GOutputStream *out,
int error_code,
- char *reason)
+ const char *reason)
{
char *res;
*tmp = 0;
version = tmp + 1;
}
+ version = version; /* To avoid -Wunused-but-set-variable */
query = strchr (escaped, '?');
if (query != NULL)
GOptionContext *context;
GError *error = NULL;
- g_type_init ();
- g_thread_init (NULL);
-
context = g_option_context_new ("<http root dir> - Simple HTTP server");
g_option_context_add_main_entries (context, cmd_entries, NULL);
if (!g_option_context_parse (context, &argc, &argv, &error))