diff options
author | Mattias Andrée <m@maandree.se> | 2025-02-06 20:10:47 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-02-06 20:10:47 +0100 |
commit | 49a48f704920d3556beb309f31e2728161da652d (patch) | |
tree | f67561da99c4ae35a70cf1ba1254a2f6cb481954 /radharc-ipc.c | |
parent | m + libradharc for client-side protocol implementation (diff) | |
download | radharc-master.tar.gz radharc-master.tar.bz2 radharc-master.tar.xz |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'radharc-ipc.c')
-rw-r--r-- | radharc-ipc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/radharc-ipc.c b/radharc-ipc.c index 3787d2d..80d7ba7 100644 --- a/radharc-ipc.c +++ b/radharc-ipc.c @@ -77,9 +77,9 @@ main(int argc, char *argv[]) goto fail; /* we need an address, otherwise the peer will not get an address to send the response to */ - memset(&addr, 0, sizeof(addr)); - addr.sun_family = AF_UNIX; - if (bind(sock, (void *)&addr, (socklen_t)offsetof(struct sockaddr_un, sun_path))) + memset(&addr, 0, sizeof(addr)); + addr.sun_family = AF_UNIX; + if (bind(sock, (void *)&addr, (socklen_t)offsetof(struct sockaddr_un, sun_path))) goto fail; socks = calloc((size_t)argc, sizeof(int)); |