Skip to content

Commit

Permalink
[2.6 patch] net/sunrpc/rpcb_clnt.c: make struct rpcb_program static
Browse files Browse the repository at this point in the history
This patch makes the needlessly global struct rpcb_program static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Adrian Bunk authored and Trond Myklebust committed Oct 9, 2007
1 parent 67f97d8 commit 7f4adef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/sunrpc/rpcb_clnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ enum {
#define RPCB_MAXOWNERLEN sizeof(RPCB_OWNER_STRING)

static void rpcb_getport_done(struct rpc_task *, void *);
extern struct rpc_program rpcb_program;
static struct rpc_program rpcb_program;

struct rpcbind_args {
struct rpc_xprt * r_xprt;
Expand Down Expand Up @@ -666,7 +666,7 @@ static struct rpc_version *rpcb_version[] = {

static struct rpc_stat rpcb_stats;

struct rpc_program rpcb_program = {
static struct rpc_program rpcb_program = {
.name = "rpcbind",
.number = RPCBIND_PROGRAM,
.nrvers = ARRAY_SIZE(rpcb_version),
Expand Down

0 comments on commit 7f4adef

Please sign in to comment.