Improve compatibility with clang.
This commit is contained in:
parent
8273b383ab
commit
2057d7cd18
4
src/nl.h
4
src/nl.h
@ -48,10 +48,10 @@ typedef int (*nl_rtattr_parse_fn)(struct rtattr *attr, int type, void *data);
|
|||||||
void nl_rtattr_parse(const struct nlmsghdr *nlh, size_t offset,
|
void nl_rtattr_parse(const struct nlmsghdr *nlh, size_t offset,
|
||||||
nl_rtattr_parse_fn workfn, void *data);
|
nl_rtattr_parse_fn workfn, void *data);
|
||||||
|
|
||||||
ssize_t nl_recv_buf(int fd, char buf[static 1], size_t blen);
|
ssize_t nl_recv_buf(int fd, char *buf, size_t blen);
|
||||||
|
|
||||||
typedef void (*nlmsg_foreach_fn)(const struct nlmsghdr *, void *);
|
typedef void (*nlmsg_foreach_fn)(const struct nlmsghdr *, void *);
|
||||||
int nl_foreach_nlmsg(char buf[static 1], size_t blen, uint32_t seq,
|
int nl_foreach_nlmsg(char *buf, size_t blen, uint32_t seq,
|
||||||
uint32_t portid,
|
uint32_t portid,
|
||||||
nlmsg_foreach_fn pfn, void *fnarg);
|
nlmsg_foreach_fn pfn, void *fnarg);
|
||||||
int nl_sendgetlinks(int fd, int seq);
|
int nl_sendgetlinks(int fd, int seq);
|
||||||
|
Loading…
Reference in New Issue
Block a user