diff options
| author | Alexander Barton <alex@barton.de> | 2009-09-11 22:52:12 +0200 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2009-09-11 22:52:12 +0200 |
| commit | 8fd0e29d463c934756dce7a562f09ea831b5d968 (patch) | |
| tree | cd25067d357cf30a59d6781c818f323c64d92737 /src/ipaddr/ng_ipaddr.c | |
| parent | bfa48f3448a140048386810f97049ad8200c1842 (diff) | |
| download | ngircd-8fd0e29d463c934756dce7a562f09ea831b5d968.tar.gz ngircd-8fd0e29d463c934756dce7a562f09ea831b5d968.zip | |
Fix "implicit conversion shortens 64-bit value" warning
This patch fixes the following gcc warning in our sources: "implicit conversion shortens 64-bit value into a 32-bit value"
Diffstat (limited to 'src/ipaddr/ng_ipaddr.c')
| -rw-r--r-- | src/ipaddr/ng_ipaddr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ipaddr/ng_ipaddr.c b/src/ipaddr/ng_ipaddr.c index b412cc83..0367a1f7 100644 --- a/src/ipaddr/ng_ipaddr.c +++ b/src/ipaddr/ng_ipaddr.c @@ -151,7 +151,8 @@ ng_ipaddr_tostr_r(const ng_ipaddr_t *addr, char *str) if (*str == ':') { char tmp[NG_INET_ADDRSTRLEN] = "0"; ret = getnameinfo(sa, ng_ipaddr_salen(addr), - tmp+1, sizeof(tmp) -1, NULL, 0, NI_NUMERICHOST); + tmp + 1, (socklen_t)sizeof(tmp) - 1, + NULL, 0, NI_NUMERICHOST); if (ret == 0) strlcpy(str, tmp, NG_INET_ADDRSTRLEN); } |