summaryrefslogtreecommitdiffstats
path: root/src/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket.c')
-rw-r--r--src/socket.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/socket.c b/src/socket.c
index 2a8611d..0751a3c 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -27,8 +27,6 @@
#include "fastd.h"
#include "poll.h"
-#include <fcntl.h>
-
static int bind_socket(const fastd_bind_address_t *addr, bool warn) {
int fd = -1;
@@ -58,8 +56,8 @@ static int bind_socket(const fastd_bind_address_t *addr, bool warn) {
if (fd < 0)
goto error;
- fastd_setfd(fd, FD_CLOEXEC, 0);
- fastd_setfl(fd, O_NONBLOCK, 0);
+ fastd_setfd(fd, FD_CLOEXEC);
+ fastd_setfl(fd, O_NONBLOCK);
int one = 1;