diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-01-20 13:53:37 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-01-31 19:28:19 -0500 |
commit | 6eac7d3f45a2519283d38bf670cb6968230124f8 (patch) | |
tree | af5542a51d63d971d2fe1af95e27617dc4947104 /include | |
parent | 4cb54ca2069903121e4c03ec427147c47bed5755 (diff) |
SUNRPC: constify rpc_clnt fields cl_server and cl_protname
...and get rid of the superfluous cl_inline_name.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/clnt.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h index 9e754e3458fc..db6970ced9bc 100644 --- a/include/linux/sunrpc/clnt.h +++ b/include/linux/sunrpc/clnt.h | |||
@@ -41,8 +41,8 @@ struct rpc_clnt { | |||
41 | cl_vers, /* RPC version number */ | 41 | cl_vers, /* RPC version number */ |
42 | cl_maxproc; /* max procedure number */ | 42 | cl_maxproc; /* max procedure number */ |
43 | 43 | ||
44 | char * cl_server; /* server machine name */ | 44 | const char * cl_server; /* server machine name */ |
45 | char * cl_protname; /* protocol name */ | 45 | const char * cl_protname; /* protocol name */ |
46 | struct rpc_auth * cl_auth; /* authenticator */ | 46 | struct rpc_auth * cl_auth; /* authenticator */ |
47 | struct rpc_stat * cl_stats; /* per-program statistics */ | 47 | struct rpc_stat * cl_stats; /* per-program statistics */ |
48 | struct rpc_iostats * cl_metrics; /* per-client statistics */ | 48 | struct rpc_iostats * cl_metrics; /* per-client statistics */ |
@@ -62,7 +62,6 @@ struct rpc_clnt { | |||
62 | struct rpc_rtt cl_rtt_default; | 62 | struct rpc_rtt cl_rtt_default; |
63 | struct rpc_timeout cl_timeout_default; | 63 | struct rpc_timeout cl_timeout_default; |
64 | struct rpc_program * cl_program; | 64 | struct rpc_program * cl_program; |
65 | char cl_inline_name[32]; | ||
66 | char *cl_principal; /* target to authenticate to */ | 65 | char *cl_principal; /* target to authenticate to */ |
67 | }; | 66 | }; |
68 | 67 | ||
@@ -97,7 +96,7 @@ struct rpc_procinfo { | |||
97 | unsigned int p_count; /* call count */ | 96 | unsigned int p_count; /* call count */ |
98 | unsigned int p_timer; /* Which RTT timer to use */ | 97 | unsigned int p_timer; /* Which RTT timer to use */ |
99 | u32 p_statidx; /* Which procedure to account */ | 98 | u32 p_statidx; /* Which procedure to account */ |
100 | char * p_name; /* name of procedure */ | 99 | const char * p_name; /* name of procedure */ |
101 | }; | 100 | }; |
102 | 101 | ||
103 | #ifdef __KERNEL__ | 102 | #ifdef __KERNEL__ |
@@ -109,7 +108,7 @@ struct rpc_create_args { | |||
109 | size_t addrsize; | 108 | size_t addrsize; |
110 | struct sockaddr *saddress; | 109 | struct sockaddr *saddress; |
111 | const struct rpc_timeout *timeout; | 110 | const struct rpc_timeout *timeout; |
112 | char *servername; | 111 | const char *servername; |
113 | struct rpc_program *program; | 112 | struct rpc_program *program; |
114 | u32 prognumber; /* overrides program->number */ | 113 | u32 prognumber; /* overrides program->number */ |
115 | u32 version; | 114 | u32 version; |