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

Alexey Kodanev
2017-01-27T14:07:08Z

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