History

SUNRPC: constify rpc_program->name

Trond Myklebust committed 14 years ago

Commit 080b7941 parent 6eac7d32 files · +5 −4Browse files

Unified · Split

2 files
  1. include/linux/sunrpc/clnt.h +2 −2
  2. net/sunrpc/clnt.c +3 −2
include/linux/sunrpc/clnt.h+2−2
@@ -70,12 +70,12 @@ struct rpc_clnt { · 69 unmodified lines
70 */70 */
71#define RPC_MAXVERSION 471#define RPC_MAXVERSION 4
72struct rpc_program {72struct rpc_program {
73 char * name; /* protocol name */73 const char * name; /* protocol name */
74 u32 number; /* program number */74 u32 number; /* program number */
75 unsigned int nrvers; /* number of versions */75 unsigned int nrvers; /* number of versions */
76 struct rpc_version ** version; /* version array */76 struct rpc_version ** version; /* version array */
77 struct rpc_stat * stats; /* statistics */77 struct rpc_stat * stats; /* statistics */
78 char * pipe_dir_name; /* path to rpc_pipefs dir */78 const char * pipe_dir_name; /* path to rpc_pipefs dir */
79};79};
80 80
81struct rpc_version {81struct rpc_version {
net/sunrpc/clnt.c+3−2
@@ -118,7 +118,8 @@ static void rpc_clnt_remove_pipedir(struct rpc_clnt *clnt) · 117 unmodified lines
118}118}
119 119
120static struct dentry *rpc_setup_pipedir_sb(struct super_block *sb,120static struct dentry *rpc_setup_pipedir_sb(struct super_block *sb,
121 struct rpc_clnt *clnt, char *dir_name)121 struct rpc_clnt *clnt,
122 const char *dir_name)
122{123{
123 static uint32_t clntid;124 static uint32_t clntid;
124 char name[15];125 char name[15];
@@ -151,7 +152,7 @@ static struct dentry *rpc_setup_pipedir_sb(struct super_block *sb, · 26 unmodified lines
151}152}
152 153
153static int154static int
154rpc_setup_pipedir(struct rpc_clnt *clnt, char *dir_name)155rpc_setup_pipedir(struct rpc_clnt *clnt, const char *dir_name)
155{156{
156 struct super_block *pipefs_sb;157 struct super_block *pipefs_sb;
157 struct dentry *dentry;158 struct dentry *dentry;