Skip to content

Commit 5eaf805

Browse files
committed
Add missing returns after Rust calls to prevent fallthrough
1 parent f0523ce commit 5eaf805

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib_ccx/networking.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void connect_to_srv(const char *addr, const char *port, const char *cc_desc, con
104104
{
105105
#ifndef DISABLE_RUST
106106
(void)ccxr_connect_to_srv(addr, port, cc_desc, pwd);
107-
107+
return;
108108
#endif
109109
if (NULL == addr)
110110
{
@@ -139,7 +139,7 @@ void net_send_header(const unsigned char *data, size_t len)
139139
{
140140
#ifndef DISABLE_RUST
141141
(void)ccxr_net_send_header(data, len);
142-
142+
return;
143143
#endif
144144
assert(srv_sd > 0);
145145

@@ -256,7 +256,7 @@ void net_send_epg(
256256
{
257257
#ifndef DISABLE_RUST
258258
(void)ccxr_net_send_epg(start, stop, title, desc, lang, category);
259-
259+
return;
260260
#endif
261261
size_t st;
262262
size_t sp;

0 commit comments

Comments
 (0)