diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2018-01-24 15:16:32 +0300 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2018-01-24 15:16:32 +0300 |
commit | 67c64a99fb78f48c3deacc7d89e73de72522806b (patch) | |
tree | 384b433c94fc63e27d21d6b05153d162655e79bc /src/nxt_sockaddr.c | |
parent | 477e8177b70acb694759e62d830b8a311a736324 (diff) | |
download | unit-67c64a99fb78f48c3deacc7d89e73de72522806b.tar.gz unit-67c64a99fb78f48c3deacc7d89e73de72522806b.tar.bz2 |
Using size_t for the field width type of the "%*s" specifier.
Diffstat (limited to 'src/nxt_sockaddr.c')
-rw-r--r-- | src/nxt_sockaddr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_sockaddr.c b/src/nxt_sockaddr.c index af2b8674..cd8a2cd2 100644 --- a/src/nxt_sockaddr.c +++ b/src/nxt_sockaddr.c @@ -287,7 +287,7 @@ nxt_sockaddr_text(nxt_sockaddr_t *sa) #if (NXT_LINUX) if (p[0] == '\0') { - int length; + size_t length; /* Linux abstract socket address has no trailing zero. */ length = sa->socklen - offsetof(struct sockaddr_un, sun_path); @@ -478,7 +478,7 @@ nxt_sockaddr_ntop(nxt_sockaddr_t *sa, u_char *buf, u_char *end, nxt_bool_t port) p = (u_char *) sa->u.sockaddr_un.sun_path; if (p[0] == '\0') { - int length; + size_t length; /* Linux abstract socket address has no trailing zero. */ |