CLEANUP: src/fd.c: mask setsockopt with DISGUISE

we do not care of what is returned, let static analyzers to
know that
This commit is contained in:
Ilya Shipitsin 2020-04-02 15:02:08 +05:00 committed by Willy Tarreau
parent 876ed55d9b
commit b7e43f0cab

View File

@ -314,8 +314,8 @@ static void fd_dodelete(int fd, int do_close)
if (fdtab[fd].linger_risk) {
/* this is generally set when connecting to servers */
setsockopt(fd, SOL_SOCKET, SO_LINGER,
(struct linger *) &nolinger, sizeof(struct linger));
DISGUISE(setsockopt(fd, SOL_SOCKET, SO_LINGER,
(struct linger *) &nolinger, sizeof(struct linger)));
}
if (cur_poller.clo)
cur_poller.clo(fd);