diff options
author | Steve French <sfrench@us.ibm.com> | 2008-01-25 05:12:41 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2008-01-25 05:12:41 -0500 |
commit | 366781c19635d861f43ff5e03388a3873ec912d9 (patch) | |
tree | beef581849a76dd7b1c1e365c19314409f2189fb /fs/cifs/dns_resolve.c | |
parent | 6d5ae0deb1641bf615eafd8fef64218e10cb2fd0 (diff) |
[CIFS] DFS build fixes
Also includes a few minor changes suggested by Christoph
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/dns_resolve.c')
-rw-r--r-- | fs/cifs/dns_resolve.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/cifs/dns_resolve.c b/fs/cifs/dns_resolve.c index 777a086abd6f..ef7f43824347 100644 --- a/fs/cifs/dns_resolve.c +++ b/fs/cifs/dns_resolve.c | |||
@@ -64,13 +64,14 @@ struct key_type key_type_dns_resolver = { | |||
64 | * return 0 on success | 64 | * return 0 on success |
65 | */ | 65 | */ |
66 | int | 66 | int |
67 | dns_resolve_server_name_to_ip(const char *unc, char **ip_addr) { | 67 | dns_resolve_server_name_to_ip(const char *unc, char **ip_addr) |
68 | { | ||
68 | int rc = -EAGAIN; | 69 | int rc = -EAGAIN; |
69 | struct key *rkey; | 70 | struct key *rkey; |
70 | char *name; | 71 | char *name; |
71 | int len; | 72 | int len; |
72 | 73 | ||
73 | if ((!ip_addr) || (!unc)) | 74 | if (!ip_addr || !unc) |
74 | return -EINVAL; | 75 | return -EINVAL; |
75 | 76 | ||
76 | /* search for server name delimiter */ | 77 | /* search for server name delimiter */ |