diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2009-03-18 20:45:58 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-03-28 15:53:57 -0400 |
commit | 156e62094a74cf43f02f56ef96b6cda567501357 (patch) | |
tree | 100fdf25a7f13f8c2ebebd241d02a9ed46e89292 /include | |
parent | adbbe929569e6eec8ff9feca23f1f2b40b42853d (diff) |
SUNRPC: Clean up svc_find_xprt() calling sequence
Clean up: add documentating comment and use appropriate data types for
svc_find_xprt()'s arguments.
This also eliminates a mixed sign comparison: @port was an int, while
the return value of svc_xprt_local_port() is an unsigned short.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/svc_xprt.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/sunrpc/svc_xprt.h b/include/linux/sunrpc/svc_xprt.h index 959b931b6053..55b68582c5d9 100644 --- a/include/linux/sunrpc/svc_xprt.h +++ b/include/linux/sunrpc/svc_xprt.h | |||
@@ -80,7 +80,8 @@ void svc_close_xprt(struct svc_xprt *xprt); | |||
80 | void svc_delete_xprt(struct svc_xprt *xprt); | 80 | void svc_delete_xprt(struct svc_xprt *xprt); |
81 | int svc_port_is_privileged(struct sockaddr *sin); | 81 | int svc_port_is_privileged(struct sockaddr *sin); |
82 | int svc_print_xprts(char *buf, int maxlen); | 82 | int svc_print_xprts(char *buf, int maxlen); |
83 | struct svc_xprt *svc_find_xprt(struct svc_serv *, char *, int, int); | 83 | struct svc_xprt *svc_find_xprt(struct svc_serv *serv, const char *xcl_name, |
84 | const sa_family_t af, const unsigned short port); | ||
84 | int svc_xprt_names(struct svc_serv *serv, char *buf, int buflen); | 85 | int svc_xprt_names(struct svc_serv *serv, char *buf, int buflen); |
85 | 86 | ||
86 | static inline void svc_xprt_get(struct svc_xprt *xprt) | 87 | static inline void svc_xprt_get(struct svc_xprt *xprt) |