diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2021-07-06 09:47:41 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-06 09:47:41 -0400 |
| commit | acb4c44ef8da8c1a155184a809647533237adca9 (patch) | |
| tree | 66c81b756c79ff507088d82ccc2bea4614b3a300 /lib/network.c | |
| parent | 4afc3218254264c20b38b32b085b430c34a86c24 (diff) | |
| parent | e702605d80c26e94681b282d97c726df6c6871da (diff) | |
Merge pull request #8942 from ton31337/fix/cleanups_2
Another round of cleanup
Diffstat (limited to 'lib/network.c')
| -rw-r--r-- | lib/network.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/network.c b/lib/network.c index 411661a5e1..b60ad9a57c 100644 --- a/lib/network.c +++ b/lib/network.c @@ -78,7 +78,8 @@ int set_nonblocking(int fd) /* According to the Single UNIX Spec, the return value for F_GETFL should never be negative. */ - if ((flags = fcntl(fd, F_GETFL)) < 0) { + flags = fcntl(fd, F_GETFL); + if (flags < 0) { flog_err(EC_LIB_SYSTEM_CALL, "fcntl(F_GETFL) failed for fd %d: %s", fd, safe_strerror(errno)); |
