Fixed incorrect code.

The #endif was misplaced by accident during a refactor:
<029942f4eb>.

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)).
This commit is contained in:
Alejandro Colomar
2022-06-23 13:25:04 +02:00
parent 5015b05fc4
commit 6ba39ccf9b

View File

@@ -208,8 +208,8 @@ nxt_getsockname(nxt_task_t *task, nxt_mp_t *mp, nxt_socket_t s)
#if (NXT_HAVE_UNIX_DOMAIN) #if (NXT_HAVE_UNIX_DOMAIN)
case AF_UNIX: case AF_UNIX:
length = nxt_length("unix:") + socklen; length = nxt_length("unix:") + socklen;
#endif
break; break;
#endif
case AF_INET: case AF_INET:
length = NXT_INET_ADDR_STR_LEN; length = NXT_INET_ADDR_STR_LEN;