mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-18 17:57:39 +03:00
Fix warnings for return-type
This commit is contained in:
parent
d2cfa3c603
commit
125458df51
4
common.c
4
common.c
@ -97,12 +97,12 @@ int make_listen_tfo(int s)
|
|||||||
|
|
||||||
/* Don't do it if not supported */
|
/* Don't do it if not supported */
|
||||||
if (!TCP_FASTOPEN)
|
if (!TCP_FASTOPEN)
|
||||||
return;
|
return 0;
|
||||||
|
|
||||||
/* Don't do it if any protocol does not specify it */
|
/* Don't do it if any protocol does not specify it */
|
||||||
for (i = 0; i < cfg.protocols_len; i++) {
|
for (i = 0; i < cfg.protocols_len; i++) {
|
||||||
if (! cfg.protocols[i].tfo_ok)
|
if (! cfg.protocols[i].tfo_ok)
|
||||||
return;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return setsockopt(s, SOL_SOCKET, TCP_FASTOPEN, (char*)&qlen, sizeof(qlen));
|
return setsockopt(s, SOL_SOCKET, TCP_FASTOPEN, (char*)&qlen, sizeof(qlen));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user