[DCCP]: Fix sparse warnings.
authorAlan Cox <alan@redhat.com>
Mon, 10 Jul 2006 21:24:23 +0000 (14:24 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 10 Jul 2006 21:50:37 +0000 (14:50 -0700)
No actual bugs that I can see just a couple of unmarked casts
getting annoying in my debug log files.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/proto.c

index f4f0627ea41c0ccd53787845267330dc7eb3013b..6f14bb5a28d41c4de55bfa8c7bdad0b50b795a13 100644 (file)
@@ -484,7 +484,7 @@ static int do_dccp_setsockopt(struct sock *sk, int level, int optname,
                        err = -EINVAL;
                else
                        err = dccp_setsockopt_change(sk, DCCPO_CHANGE_L,
-                                                    (struct dccp_so_feat *)
+                                                    (struct dccp_so_feat __user *)
                                                     optval);
                break;
 
@@ -493,7 +493,7 @@ static int do_dccp_setsockopt(struct sock *sk, int level, int optname,
                        err = -EINVAL;
                else
                        err = dccp_setsockopt_change(sk, DCCPO_CHANGE_R,
-                                                    (struct dccp_so_feat *)
+                                                    (struct dccp_so_feat __user *)
                                                     optval);
                break;