mirror of
https://gitee.com/openharmony/third_party_libnl
synced 2024-11-24 02:29:50 +00:00
Fix compile warning in nl.c
This commit is contained in:
parent
db5bd57899
commit
256d7e723c
@ -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 *,
|
||||
|
2
lib/nl.c
2
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;
|
||||
|
Loading…
Reference in New Issue
Block a user