diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2007-10-26 19:32:56 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-02-01 23:01:31 +0100 |
commit | ea339d46b93c7b16e067a29aad1812f7a389815a (patch) | |
tree | 2e260fc9d3310a1ff11e61adaa21d3350e5f9013 /net/sunrpc/svc.c | |
parent | SUNRPC: Move exported symbol definitions after function declaration part 2 (diff) | |
download | linux-ea339d46b93c7b16e067a29aad1812f7a389815a.tar.xz linux-ea339d46b93c7b16e067a29aad1812f7a389815a.zip |
SUNRPC: RPC program information is stored in unsigned integers
Clean up: When looping over RPC version and procedure numbers, use
unsigned index variables.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'net/sunrpc/svc.c')
-rw-r--r-- | net/sunrpc/svc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index 7537af7c4a76..a290e1523297 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c @@ -364,7 +364,7 @@ __svc_create(struct svc_program *prog, unsigned int bufsize, int npools, void (*shutdown)(struct svc_serv *serv)) { struct svc_serv *serv; - int vers; + unsigned int vers; unsigned int xdrsize; unsigned int i; @@ -763,7 +763,8 @@ svc_register(struct svc_serv *serv, int proto, unsigned short port) { struct svc_program *progp; unsigned long flags; - int i, error = 0, dummy; + unsigned int i; + int error = 0, dummy; if (!port) clear_thread_flag(TIF_SIGPENDING); |