Skip to content

Commit a677221

Browse files
committed
clean
1 parent be79c5b commit a677221

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.sai.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@
237237
"coverity": {
238238
"cmake": "-DLWS_WITHOUT_EXTENSIONS=0 -DLWS_WITH_CGI=1 -DLWS_IPV6=1 -DLWS_WITH_HTTP_PROXY=1 -DLWS_WITH_RANGES=1 -DLWS_WITH_THREADPOOL=1 -DLWS_WITH_CBOR=1 -DLWS_WITH_JOSE=1 -DLWS_WITH_COSE=1 -DLWS_WITH_SYS_DHCP_CLIENT=1 -DLWS_WITH_FTS=1 -DLWS_WITH_STRUCT_SQLITE3=1 -DLWS_ROLE_DBUS=1 -DLWS_WITH_SYS_ASYNC_DNS=1 -DLWS_WITH_SYS_FAULT_INJECTION=1 -DLWS_WITH_TLS_JIT_TRUST=1 -DLWS_ROLE_MQTT=1 -DLWS_ROLE_RAW_PROXY=1 -DLWS_WITH_EVENT_LIBS=1 -DLWS_WITH_LIBUV=1 -DLWS_WITH_STRUCT_JSON=1 -DLWS_WITH_LWS_DSH=1 -DLWS_WITH_SECURE_STREAMS_PROXY_API=1",
239239
"platforms": "none, coverity/x86_64/gcc",
240-
"cpack": "export STAMP=`git log -1 --pretty=format:%h` && rm -f libwebsockets.tgz && tar czvf libwebsockets.tgz cov-int && lws-minimal-http-client-post-form https://scan.coverity.com/builds?project=warmcat%2Flibwebsockets --form [email protected] --form version=$STAMP --form 'description=lws qa' < /etc/coverity/secrets.sh",
240+
"cpack": "export STAMP=`git log -1 --pretty=format:%h` && rm -f libwebsockets.tgz && tar czvf libwebsockets.tgz cov-int && lws-minimal-http-client-post-form https://scan.coverity.com/builds?project=warmcat%2Flibwebsockets --form [email protected] --form version=$STAMP --form 'description=lws qa' < <(cat /etc/coverity/secrets.sh)",
241241
"branches": "coverity"
242242
}
243243
}

lib/core/libwebsockets.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1594,6 +1594,7 @@ lws_cmdline_option(int argc, const char **argv, const char *val)
15941594
}
15951595
#endif
15961596

1597+
#if !defined(LWS_PLAT_FREERTOS) && !defined(LWS_PLAT_BAREMETAL) && !defined(LWS_PLAT_ANDROID) && defined(LWS_WITH_NETWORK)
15971598
static const char * const builtins[] = {
15981599
"-d",
15991600
"--fault-injection",
@@ -1614,7 +1615,6 @@ enum opts {
16141615
OPT_SSPROXY_ADS,
16151616
};
16161617

1617-
#if !defined(LWS_PLAT_FREERTOS)
16181618
static void
16191619
lws_sigterm_catch(int sig)
16201620
{

lib/plat/unix/unix-spawn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ lws_spawn_stdwsi_closed(struct lws_spawn_piped *lsp, struct lws *wsi)
791791
goto found;
792792

793793
/* Not found, so must have been destroyed already */
794-
lwsl_warn("%s: ----------------- didn't find stdwsi on lsp\n", __func__);
794+
// lwsl_warn("%s: ----------------- didn't find stdwsi on lsp\n", __func__);
795795

796796
return 0;
797797

lib/roles/http/client/client-http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1776,7 +1776,7 @@ lws_http_mp_sm_fill(struct lws_http_mp_sm *phms, uint8_t **p, uint8_t *end)
17761776
if (lws_ptr_diff(end, *p) < 100)
17771777
return 1;
17781778

1779-
r = read(phms->fd, *p, chunk);
1779+
r = read(phms->fd, *p, LWS_POSIX_LENGTH_CAST(chunk));
17801780
if (r < 0) {
17811781
close(phms->fd);
17821782
lwsl_warn("%s: unable to read\n", __func__);

lib/system/stdin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ callback_system_stdin(struct lws *wsi, enum lws_callback_reasons reason, void *u
117117
if (!cx->system_ops || !cx->system_ops->stdin_rx)
118118
return -1;
119119

120-
fd = lws_get_socket_fd(wsi);
120+
fd = (int)lws_get_socket_fd(wsi);
121121
if (fd < 0)
122122
return -1;
123123
n = read(fd, buf, sizeof(buf));

0 commit comments

Comments
 (0)