]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/net/netlink.h
[NETLINK]: Use nlmsg_trim() where appropriate
[net-next-2.6.git] / include / net / netlink.h
index 2c7ab107f20d4d27e48253e51020b4e63781f4c2..510ca7fabe18e9ba7a17c5aa68b1b63d2ae281fd 100644 (file)
@@ -548,7 +548,7 @@ static inline void *nlmsg_get_pos(struct sk_buff *skb)
  *
  * Trims the message to the provided mark. Returns -1.
  */
-static inline int nlmsg_trim(struct sk_buff *skb, void *mark)
+static inline int nlmsg_trim(struct sk_buff *skb, const void *mark)
 {
        if (mark)
                skb_trim(skb, (unsigned char *) mark - skb->data);