From 6ba39ccf9b862f56155aa4b391063bf548ce6574 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Thu, 23 Jun 2022 13:25:04 +0200 Subject: Fixed incorrect code. The #endif was misplaced by accident during a refactor: . clang(1)'s -Wunreachable-code-break (implied by -Weverything) catches that, but it is only produced for code compiled without support for Unix sockets, which is probably the reason it was undetected: no-one seems to be compiling Unit without Unix sockets support (at least with clang(1)). --- src/nxt_sockaddr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nxt_sockaddr.c b/src/nxt_sockaddr.c index 71e50e3c..e8dee83a 100644 --- a/src/nxt_sockaddr.c +++ b/src/nxt_sockaddr.c @@ -208,8 +208,8 @@ nxt_getsockname(nxt_task_t *task, nxt_mp_t *mp, nxt_socket_t s) #if (NXT_HAVE_UNIX_DOMAIN) case AF_UNIX: length = nxt_length("unix:") + socklen; -#endif break; +#endif case AF_INET: length = NXT_INET_ADDR_STR_LEN; -- cgit