diff options
| author | Roy Marples <roy@marples.name> | 2009-02-11 17:56:22 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-02-11 17:56:22 +0000 |
| commit | eab2229cfa459ccbf8178ad4cdba68fbb7ebaf46 (patch) | |
| tree | b896daed217eb023e6e5b5d152e9e8a9a0e42169 /control.c | |
| parent | 63170def69524476fd43495ab1767b8690c0e9b5 (diff) | |
| download | dhcpcd-eab2229cfa459ccbf8178ad4cdba68fbb7ebaf46.tar.xz | |
Enforce NetBSD KNF style more
Diffstat (limited to 'control.c')
| -rw-r--r-- | control.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -41,10 +41,10 @@ #include "eloop.h" static int fd = -1; -struct sockaddr_un sun; static char buffer[1024]; static char *argvp[255]; +struct sockaddr_un sun; struct fd_list *fds = NULL; static void @@ -134,7 +134,8 @@ start_control(void) return -1; unlink(CONTROLSOCKET); if (bind(fd, (struct sockaddr *)&sun, len) == -1 || - chmod(CONTROLSOCKET, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP) == -1 || + chmod(CONTROLSOCKET, + S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP) == -1 || set_cloexec(fd) == -1 || set_nonblock(fd) == -1 || listen(fd, sizeof(fds)) == -1) |
