summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Cox <alan@redhat.com>2006-07-10 14:24:23 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2006-07-10 14:50:37 -0700
commit9faefb6d41f770e9cebad0fa180e7e78ef861211 (patch)
tree4a0670d0496613bab015d732fb35ec7bc048c77d
parentc427d27452b41378e305af80db5757da048dd38e (diff)
downloadblackbird-op-linux-9faefb6d41f770e9cebad0fa180e7e78ef861211.tar.gz
blackbird-op-linux-9faefb6d41f770e9cebad0fa180e7e78ef861211.zip
[DCCP]: Fix sparse warnings.
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>
-rw-r--r--net/dccp/proto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dccp/proto.c b/net/dccp/proto.c
index f4f0627ea41c..6f14bb5a28d4 100644
--- a/net/dccp/proto.c
+++ b/net/dccp/proto.c
@@ -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;
OpenPOWER on IntegriCloud