CIFS: Make cifs_convert_address() take a const src pointer and a length
commit67b7626a0512d12e34b38ff45e32c693cf9c79a1
authorDavid Howells <dhowells@redhat.com>
Thu, 22 Jul 2010 17:33:01 +0000 (22 18:33 +0100)
committerSteve French <sfrench@us.ibm.com>
Thu, 5 Aug 2010 17:17:50 +0000 (5 17:17 +0000)
treeb62f4274a09d0e7ceee6325c077f487c2bceca3b
parentf579903ef3e392251dc7e93cb521ddb622fbf8e0
CIFS: Make cifs_convert_address() take a const src pointer and a length

Make cifs_convert_address() take a const src pointer and a length so that all
the strlen() calls in their can be cut out and to make it unnecessary to modify
the src string.

Also return the data length from dns_resolve_server_name_to_ip() so that a
strlen() can be cut out of cifs_compose_mount_options() too.

Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifs_dfs_ref.c
fs/cifs/cifsproto.h
fs/cifs/connect.c
fs/cifs/dns_resolve.c
fs/cifs/netmisc.c