true is C23 keyword

This commit is contained in:
Michael Davidsaver
2025-04-15 16:01:25 -07:00
parent 7372b4e5bb
commit f827bd7e34

View File

@@ -480,14 +480,14 @@ static void acceptNewClient ( void *pParam )
* this task will find out and exit
*/
{
long true = 1;
long True = 1;
status = setsockopt(
pclient->insock,
SOL_SOCKET,
SO_KEEPALIVE,
(char *)&true,
sizeof(true) );
(char *)&True,
sizeof(True) );
if(status<0){
fprintf(stderr, "Keepalive option set failed\n");
}