refactor(core): change return struct name

This commit is contained in:
2025-12-01 22:29:29 +01:00
parent c170aa07f4
commit 80275c1927
7 changed files with 58 additions and 57 deletions

View File

@@ -38,16 +38,16 @@ int main(void) {
}
cws_server_s server;
cws_server_ret ret;
cws_return ret;
ret = cws_server_setup(&server, config);
if (ret != CWS_SERVER_OK) {
if (ret != CWS_OK) {
CWS_LOG_ERROR("Unable to setup web server: %s", cws_error_str(ret));
}
CWS_LOG_INFO("Running cws on http://%s:%s...", config->hostname, config->port);
ret = cws_server_start(&server);
if (ret != CWS_SERVER_OK) {
if (ret != CWS_OK) {
CWS_LOG_ERROR("Unable to start web server: %s", cws_error_str(ret));
}