mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
sd-netlink: make sd_netlink_message_read() returns size of read data
This commit is contained in:
parent
66d3159739
commit
5dc3dbe855
@ -611,7 +611,7 @@ int sd_netlink_message_read(sd_netlink_message *m, unsigned short type, size_t s
|
||||
if (data)
|
||||
memcpy(data, attr_data, size);
|
||||
|
||||
return 0;
|
||||
return r;
|
||||
}
|
||||
|
||||
int sd_netlink_message_read_string(sd_netlink_message *m, unsigned short type, const char **data) {
|
||||
|
Loading…
Reference in New Issue
Block a user