diff options
author | Jeff Layton <jlayton@samba.org> | 2011-12-03 05:57:11 -0500 |
---|---|---|
committer | Jeff Layton <jlayton@samba.org> | 2011-12-03 05:57:11 -0500 |
commit | d540fe20e3943293f493a80529da012d00782ebe (patch) | |
tree | 44898b8f7b40dd44c4c5e72018e1faa5bb8b14da | |
parent | fa488d9fd2a0d722cfcccea6c84599366b58b0de (diff) | |
download | cifs-utils-d540fe20e3943293f493a80529da012d00782ebe.tar.gz cifs-utils-d540fe20e3943293f493a80529da012d00782ebe.tar.bz2 cifs-utils-d540fe20e3943293f493a80529da012d00782ebe.zip |
resolve_host: silence compiler warning about discarding const qualifier
...don't use "ipaddr" here since it's a const pointer.
Signed-off-by: Jeff Layton <jlayton@samba.org>
Reviewed-by: Steve French <sfrench@us.ibm.com>
-rw-r--r-- | resolve_host.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/resolve_host.c b/resolve_host.c index 69859a3..17cbd10 100644 --- a/resolve_host.c +++ b/resolve_host.c @@ -70,8 +70,7 @@ int resolve_host(const char *host, char *addrstr) if (sin6->sin6_scope_id) { len = strnlen(tmpbuf, sizeof(tmpbuf)); - ipaddr = tmpbuf + len; - snprintf(ipaddr, sizeof(tmpbuf) - len, "%%%u", + snprintf(tmpbuf + len, sizeof(tmpbuf) - len, "%%%u", sin6->sin6_scope_id); } break; |