Job Snijders <j...@openbsd.org> wrote:

> -     /* Set up non-blocking mode. */
> -
>       if ((flags = fcntl(*sd, F_GETFL, 0)) == -1) {
> -             ERR("fcntl");
> -             return -1;
> -     } else if (fcntl(*sd, F_SETFL, flags|O_NONBLOCK) == -1) {
>               ERR("fcntl");
>               return -1;
>       }

It looks like you can delete F_GETFL, and the flags variable.  Unused.

Reply via email to