mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-31 01:47:15 +03:00
sd-netlink: fix implicit cast to boolean
This commit is contained in:
parent
c3747f90b1
commit
a22a8698d9
@ -147,7 +147,7 @@ sd_netlink_message *sd_netlink_message_unref(sd_netlink_message *m) {
|
||||
|
||||
int sd_netlink_message_get_type(sd_netlink_message *m, uint16_t *type) {
|
||||
assert_return(m, -EINVAL);
|
||||
assert_return(type, -EINVAL);
|
||||
assert_return(type != 0, -EINVAL);
|
||||
|
||||
*type = m->hdr->nlmsg_type;
|
||||
|
||||
@ -156,7 +156,7 @@ int sd_netlink_message_get_type(sd_netlink_message *m, uint16_t *type) {
|
||||
|
||||
int sd_netlink_message_set_flags(sd_netlink_message *m, uint16_t flags) {
|
||||
assert_return(m, -EINVAL);
|
||||
assert_return(flags, -EINVAL);
|
||||
assert_return(flags != 0, -EINVAL);
|
||||
|
||||
m->hdr->nlmsg_flags = flags;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user