diff options
author | Igor Sysoev <igor@sysoev.ru> | 2018-09-17 16:37:11 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2018-09-17 16:37:11 +0300 |
commit | ab5b67b45dd89abadc7b7750b3bb3ff761b2a405 (patch) | |
tree | 1dcd8c6e1aaf6aaddf4983ff060e1322b4215531 /src/nxt_sockaddr.c | |
parent | 4bc7a23ecf29c8f7b5003093ffce1f74243ba61d (diff) | |
download | unit-ab5b67b45dd89abadc7b7750b3bb3ff761b2a405.tar.gz unit-ab5b67b45dd89abadc7b7750b3bb3ff761b2a405.tar.bz2 |
Fixed typo.
This closes #165 issue on GitHub.
Thanks to 洪志道 (Hong Zhi Dao).
Diffstat (limited to '')
-rw-r--r-- | src/nxt_sockaddr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_sockaddr.c b/src/nxt_sockaddr.c index 9bf32a11..a001c730 100644 --- a/src/nxt_sockaddr.c +++ b/src/nxt_sockaddr.c @@ -781,7 +781,7 @@ nxt_sockaddr_inet_parse(nxt_mp_t *mp, nxt_str_t *addr) sa = nxt_sockaddr_alloc(mp, sizeof(struct sockaddr_in), NXT_INET_ADDR_STR_LEN); - if (nxt_slow_path(sa != NULL)) { + if (nxt_fast_path(sa != NULL)) { sa->u.sockaddr_in.sin_family = AF_INET; sa->u.sockaddr_in.sin_port = htons((in_port_t) port); sa->u.sockaddr_in.sin_addr.s_addr = inaddr; |