diff options
author | David S. Miller <davem@davemloft.net> | 2008-02-23 23:38:20 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-23 23:38:20 -0500 |
commit | 8d3c202be23c5a915f7053ebd4e96f44700c6a62 (patch) | |
tree | e0f017aff86d3ad0b858fe85f44e11096087ed00 /net/sunrpc/svcsock.c | |
parent | 1b04ab4597725f75f94942da9aa40daa7b9a4bd9 (diff) | |
parent | 038eb0ea04b245351be34b0ae76b55eee4603989 (diff) |
Merge branch 'master' of ../linux-2.6/
Diffstat (limited to 'net/sunrpc/svcsock.c')
-rw-r--r-- | net/sunrpc/svcsock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c index 1d3e5fcc2cc4..c475977de05a 100644 --- a/net/sunrpc/svcsock.c +++ b/net/sunrpc/svcsock.c | |||
@@ -175,7 +175,7 @@ static int svc_sendto(struct svc_rqst *rqstp, struct xdr_buf *xdr) | |||
175 | size_t base = xdr->page_base; | 175 | size_t base = xdr->page_base; |
176 | unsigned int pglen = xdr->page_len; | 176 | unsigned int pglen = xdr->page_len; |
177 | unsigned int flags = MSG_MORE; | 177 | unsigned int flags = MSG_MORE; |
178 | char buf[RPC_MAX_ADDRBUFLEN]; | 178 | RPC_IFDEBUG(char buf[RPC_MAX_ADDRBUFLEN]); |
179 | 179 | ||
180 | slen = xdr->len; | 180 | slen = xdr->len; |
181 | 181 | ||
@@ -716,7 +716,7 @@ static struct svc_xprt *svc_tcp_accept(struct svc_xprt *xprt) | |||
716 | struct socket *newsock; | 716 | struct socket *newsock; |
717 | struct svc_sock *newsvsk; | 717 | struct svc_sock *newsvsk; |
718 | int err, slen; | 718 | int err, slen; |
719 | char buf[RPC_MAX_ADDRBUFLEN]; | 719 | RPC_IFDEBUG(char buf[RPC_MAX_ADDRBUFLEN]); |
720 | 720 | ||
721 | dprintk("svc: tcp_accept %p sock %p\n", svsk, sock); | 721 | dprintk("svc: tcp_accept %p sock %p\n", svsk, sock); |
722 | if (!sock) | 722 | if (!sock) |
@@ -1206,10 +1206,10 @@ static struct svc_xprt *svc_create_socket(struct svc_serv *serv, | |||
1206 | struct socket *sock; | 1206 | struct socket *sock; |
1207 | int error; | 1207 | int error; |
1208 | int type; | 1208 | int type; |
1209 | char buf[RPC_MAX_ADDRBUFLEN]; | ||
1210 | struct sockaddr_storage addr; | 1209 | struct sockaddr_storage addr; |
1211 | struct sockaddr *newsin = (struct sockaddr *)&addr; | 1210 | struct sockaddr *newsin = (struct sockaddr *)&addr; |
1212 | int newlen; | 1211 | int newlen; |
1212 | RPC_IFDEBUG(char buf[RPC_MAX_ADDRBUFLEN]); | ||
1213 | 1213 | ||
1214 | dprintk("svc: svc_create_socket(%s, %d, %s)\n", | 1214 | dprintk("svc: svc_create_socket(%s, %d, %s)\n", |
1215 | serv->sv_program->pg_name, protocol, | 1215 | serv->sv_program->pg_name, protocol, |