mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 22:21:21 +00:00
SUNRPC: constify rpc_program->name
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
6eac7d3f45
commit
080b794ce5
2 changed files with 5 additions and 4 deletions
|
@ -70,12 +70,12 @@ struct rpc_clnt {
|
||||||
*/
|
*/
|
||||||
#define RPC_MAXVERSION 4
|
#define RPC_MAXVERSION 4
|
||||||
struct rpc_program {
|
struct rpc_program {
|
||||||
char * name; /* protocol name */
|
const char * name; /* protocol name */
|
||||||
u32 number; /* program number */
|
u32 number; /* program number */
|
||||||
unsigned int nrvers; /* number of versions */
|
unsigned int nrvers; /* number of versions */
|
||||||
struct rpc_version ** version; /* version array */
|
struct rpc_version ** version; /* version array */
|
||||||
struct rpc_stat * stats; /* statistics */
|
struct rpc_stat * stats; /* statistics */
|
||||||
char * pipe_dir_name; /* path to rpc_pipefs dir */
|
const char * pipe_dir_name; /* path to rpc_pipefs dir */
|
||||||
};
|
};
|
||||||
|
|
||||||
struct rpc_version {
|
struct rpc_version {
|
||||||
|
|
|
@ -118,7 +118,8 @@ static void rpc_clnt_remove_pipedir(struct rpc_clnt *clnt)
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct dentry *rpc_setup_pipedir_sb(struct super_block *sb,
|
static struct dentry *rpc_setup_pipedir_sb(struct super_block *sb,
|
||||||
struct rpc_clnt *clnt, char *dir_name)
|
struct rpc_clnt *clnt,
|
||||||
|
const char *dir_name)
|
||||||
{
|
{
|
||||||
static uint32_t clntid;
|
static uint32_t clntid;
|
||||||
char name[15];
|
char name[15];
|
||||||
|
@ -151,7 +152,7 @@ static struct dentry *rpc_setup_pipedir_sb(struct super_block *sb,
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
rpc_setup_pipedir(struct rpc_clnt *clnt, char *dir_name)
|
rpc_setup_pipedir(struct rpc_clnt *clnt, const char *dir_name)
|
||||||
{
|
{
|
||||||
struct super_block *pipefs_sb;
|
struct super_block *pipefs_sb;
|
||||||
struct dentry *dentry;
|
struct dentry *dentry;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue