true is C23 keyword
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user