mirror of
https://git.wownero.com/wownero/wownero-puddle.git
synced 2024-08-15 01:03:20 +00:00
fix log and return types for web ui
This commit is contained in:
parent
9ba84a4a76
commit
f987fd4aa9
1 changed files with 5 additions and 5 deletions
10
src/webui.c
10
src/webui.c
|
@ -143,7 +143,7 @@ thread_main(void *ctx)
|
||||||
webui_httpd, "0.0.0.0", context->port);
|
webui_httpd, "0.0.0.0", context->port);
|
||||||
if(!webui_listener)
|
if(!webui_listener)
|
||||||
{
|
{
|
||||||
log_fatal("Failed to bind for port: %u", context->port);
|
log_error("Failed to bind for port: %u", context->port);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
evhttp_set_gencb(webui_httpd, process_request, ctx);
|
evhttp_set_gencb(webui_httpd, process_request, ctx);
|
||||||
|
@ -164,14 +164,14 @@ start_web_ui(wui_context_t *context)
|
||||||
webui_base = event_base_new();
|
webui_base = event_base_new();
|
||||||
if (!webui_base)
|
if (!webui_base)
|
||||||
{
|
{
|
||||||
log_fatal("Failed to create httpd event base");
|
log_error("Failed to create httpd event base");
|
||||||
return 0;
|
return -1;
|
||||||
}
|
}
|
||||||
webui_httpd = evhttp_new(webui_base);
|
webui_httpd = evhttp_new(webui_base);
|
||||||
if (!webui_httpd)
|
if (!webui_httpd)
|
||||||
{
|
{
|
||||||
log_fatal("Failed to create evhttp event");
|
log_error("Failed to create evhttp event");
|
||||||
return 0;
|
return -1;
|
||||||
}
|
}
|
||||||
int rc = pthread_create(&handle, NULL, thread_main, context);
|
int rc = pthread_create(&handle, NULL, thread_main, context);
|
||||||
if (!rc)
|
if (!rc)
|
||||||
|
|
Loading…
Reference in a new issue