]> granicus.if.org Git - libnl/commitdiff
Fix compile warning in nl.c
authorThomas Graf <tgraf@suug.ch>
Sat, 3 Jul 2010 13:14:13 +0000 (15:14 +0200)
committerThomas Graf <tgraf@suug.ch>
Sat, 3 Jul 2010 13:15:12 +0000 (15:15 +0200)
include/netlink/netlink.h
lib/nl.c

index 34eb7739dfad818d0c64d292f6f7f806768fc059..1cfe220cc55991630d7d1fb5cd3495bcc75334a5 100644 (file)
@@ -51,7 +51,7 @@ extern int                    nl_sendmsg(struct nl_sock *, struct nl_msg *,
                                           struct msghdr *);
 extern int                     nl_send(struct nl_sock *, struct nl_msg *);
 extern int                     nl_send_iovec(struct nl_sock *, struct nl_msg *,
-                                             const struct iovec *, unsigned);
+                                             struct iovec *, unsigned);
 extern void                    nl_auto_complete(struct nl_sock *,
                                                      struct nl_msg *);
 extern int                     nl_send_auto_complete(struct nl_sock *,
index ed501f76982a77bf89c01ab63d343fe5ed838fc7..c453b60903b831d576d65bc3dca6c964f5d4a6f3 100644 (file)
--- a/lib/nl.c
+++ b/lib/nl.c
@@ -232,7 +232,7 @@ int nl_sendmsg(struct nl_sock *sk, struct nl_msg *msg, struct msghdr *hdr)
  * @see nl_sendmsg()
  * @return Number of characters sent on success or a negative error code.
  */
-int nl_send_iovec(struct nl_sock *sk, struct nl_msg *msg, const struct iovec *iov, unsigned iovlen)
+int nl_send_iovec(struct nl_sock *sk, struct nl_msg *msg, struct iovec *iov, unsigned iovlen)
 {
        struct sockaddr_nl *dst;
        struct ucred *creds;