networking: make skb_push & __skb_push return void pointers
[linux-2.6-block.git] / net / ax25 / af_ax25.c
index b7c486752b3acf64b821ccb8b0e1a9bc25c945da..0c92ba0cbe0be131787d1635aa58c3ce4c2fb1a4 100644 (file)
@@ -1562,7 +1562,7 @@ static int ax25_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
 
        /* Add the PID if one is not supplied by the user in the skb */
        if (!ax25->pidincl)
-               *skb_push(skb, 1) = sk->sk_protocol;
+               *(u8 *)skb_push(skb, 1) = sk->sk_protocol;
 
        if (sk->sk_type == SOCK_SEQPACKET) {
                /* Connected mode sockets go via the LAPB machine */