diff options
author | Vlad Yasevich <vladislav.yasevich@hp.com> | 2008-04-12 18:40:06 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-04-12 18:40:06 -0700 |
commit | ab38fb04c9f8928cfaf6f4966633d783419906a1 (patch) | |
tree | e7025f9cc3979a509081eb7ad93f5f6a39610c71 /net/sctp/ulpevent.c | |
parent | f4ad85ca3ef8a1ede76c5020a28a8f4057b4d24f (diff) | |
download | op-kernel-dev-ab38fb04c9f8928cfaf6f4966633d783419906a1.zip op-kernel-dev-ab38fb04c9f8928cfaf6f4966633d783419906a1.tar.gz |
[SCTP]: Fix compiler warning about const qualifiers
Fix 3 warnings about discarding const qualifiers:
net/sctp/ulpevent.c:862: warning: passing argument 1 of 'sctp_event2skb' discards qualifiers from pointer target type
net/sctp/sm_statefuns.c:4393: warning: passing argument 1 of 'SCTP_ASOC' discards qualifiers from pointer target type
net/sctp/socket.c:5874: warning: passing argument 1 of 'cmsg_nxthdr' discards qualifiers from pointer target type
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/ulpevent.c')
-rw-r--r-- | net/sctp/ulpevent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/ulpevent.c b/net/sctp/ulpevent.c index b43f1f1..ce6cda6 100644 --- a/net/sctp/ulpevent.c +++ b/net/sctp/ulpevent.c @@ -859,7 +859,7 @@ __u16 sctp_ulpevent_get_notification_type(const struct sctp_ulpevent *event) union sctp_notification *notification; struct sk_buff *skb; - skb = sctp_event2skb((struct sctp_ulpevent *)event); + skb = sctp_event2skb(event); notification = (union sctp_notification *) skb->data; return notification->sn_header.sn_type; } |