diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2008-03-14 14:18:37 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-03-19 18:00:47 -0400 |
commit | eb18860e1385bfc7f08fcb7ba362e4a5156c8324 (patch) | |
tree | c8dff7c59d8b2d356eda454aa57c6f0e278cad6b /include/linux | |
parent | 90d5b18061656993410dfd57ddb88aa5a3f34563 (diff) |
NLM: NLM protocol version numbers are u32
Clean up: RPC protocol version numbers are u32. Make sure we use an
appropriate type for NLM version numbers when calling nlm_lookup_host().
Eliminates a harmless mixed sign comparison in nlm_host_lookup().
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/lockd/lockd.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/lockd/lockd.h b/include/linux/lockd/lockd.h index 4babb2a129ac..d15595013051 100644 --- a/include/linux/lockd/lockd.h +++ b/include/linux/lockd/lockd.h | |||
@@ -173,8 +173,10 @@ void nlmclnt_next_cookie(struct nlm_cookie *); | |||
173 | /* | 173 | /* |
174 | * Host cache | 174 | * Host cache |
175 | */ | 175 | */ |
176 | struct nlm_host *nlmclnt_lookup_host(const struct sockaddr_in *, int, int, | 176 | struct nlm_host *nlmclnt_lookup_host(const struct sockaddr_in *sin, |
177 | const char *, unsigned int); | 177 | int proto, u32 version, |
178 | const char *hostname, | ||
179 | unsigned int hostname_len); | ||
178 | struct nlm_host *nlmsvc_lookup_host(struct svc_rqst *, const char *, | 180 | struct nlm_host *nlmsvc_lookup_host(struct svc_rqst *, const char *, |
179 | unsigned int); | 181 | unsigned int); |
180 | struct rpc_clnt * nlm_bind_host(struct nlm_host *); | 182 | struct rpc_clnt * nlm_bind_host(struct nlm_host *); |