[LTP] [PATCH 3/3] netstress.c: convert to new library API

Alexey Kodanev alexey.kodanev@oracle.com
Fri Jan 27 15:07:08 CET 2017


Hi,
On 01/23/2017 05:57 PM, Cyril Hrubis wrote:
> Hi!
>>   	shutdown(*fd, SHUT_WR);
>> -	SAFE_CLOSE(cleanup, *fd);
>> +	SAFE_CLOSE(*fd);
>>   	*fd = -1;
> FYI the SAFE_CLOSE() already sets fd to -1.

Ah, it's not, 'fd' passed by value there... I've blindly removed it
from code but now I need to return it back.

Best regards,
Alexey



More information about the ltp mailing list