Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
080b794c
Commit
080b794c
authored
Jan 20, 2012
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SUNRPC: constify rpc_program->name
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
6eac7d3f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
include/linux/sunrpc/clnt.h
include/linux/sunrpc/clnt.h
+2
-2
net/sunrpc/clnt.c
net/sunrpc/clnt.c
+3
-2
No files found.
include/linux/sunrpc/clnt.h
View file @
080b794c
...
...
@@ -70,12 +70,12 @@ struct rpc_clnt {
*/
#define RPC_MAXVERSION 4
struct
rpc_program
{
c
har
*
name
;
/* protocol name */
c
onst
char
*
name
;
/* protocol name */
u32
number
;
/* program number */
unsigned
int
nrvers
;
/* number of versions */
struct
rpc_version
**
version
;
/* version array */
struct
rpc_stat
*
stats
;
/* statistics */
c
har
*
pipe_dir_name
;
/* path to rpc_pipefs dir */
c
onst
char
*
pipe_dir_name
;
/* path to rpc_pipefs dir */
};
struct
rpc_version
{
...
...
net/sunrpc/clnt.c
View file @
080b794c
...
...
@@ -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
,
struct
rpc_clnt
*
clnt
,
char
*
dir_name
)
struct
rpc_clnt
*
clnt
,
const
char
*
dir_name
)
{
static
uint32_t
clntid
;
char
name
[
15
];
...
...
@@ -151,7 +152,7 @@ static struct dentry *rpc_setup_pipedir_sb(struct super_block *sb,
}
static
int
rpc_setup_pipedir
(
struct
rpc_clnt
*
clnt
,
char
*
dir_name
)
rpc_setup_pipedir
(
struct
rpc_clnt
*
clnt
,
c
onst
c
har
*
dir_name
)
{
struct
super_block
*
pipefs_sb
;
struct
dentry
*
dentry
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment