diff options
Diffstat (limited to 'net/netrom/af_netrom.c')
-rw-r--r-- | net/netrom/af_netrom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c index 53c19a35fc6d..b74aa0755521 100644 --- a/net/netrom/af_netrom.c +++ b/net/netrom/af_netrom.c | |||
@@ -1028,7 +1028,7 @@ static int nr_sendmsg(struct kiocb *iocb, struct socket *sock, | |||
1028 | { | 1028 | { |
1029 | struct sock *sk = sock->sk; | 1029 | struct sock *sk = sock->sk; |
1030 | struct nr_sock *nr = nr_sk(sk); | 1030 | struct nr_sock *nr = nr_sk(sk); |
1031 | struct sockaddr_ax25 *usax = (struct sockaddr_ax25 *)msg->msg_name; | 1031 | DECLARE_SOCKADDR(struct sockaddr_ax25 *, usax, msg->msg_name); |
1032 | int err; | 1032 | int err; |
1033 | struct sockaddr_ax25 sax; | 1033 | struct sockaddr_ax25 sax; |
1034 | struct sk_buff *skb; | 1034 | struct sk_buff *skb; |
@@ -1137,7 +1137,7 @@ static int nr_recvmsg(struct kiocb *iocb, struct socket *sock, | |||
1137 | struct msghdr *msg, size_t size, int flags) | 1137 | struct msghdr *msg, size_t size, int flags) |
1138 | { | 1138 | { |
1139 | struct sock *sk = sock->sk; | 1139 | struct sock *sk = sock->sk; |
1140 | struct sockaddr_ax25 *sax = (struct sockaddr_ax25 *)msg->msg_name; | 1140 | DECLARE_SOCKADDR(struct sockaddr_ax25 *, sax, msg->msg_name); |
1141 | size_t copied; | 1141 | size_t copied; |
1142 | struct sk_buff *skb; | 1142 | struct sk_buff *skb; |
1143 | int er; | 1143 | int er; |