1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-07 21:18:41 +03:00

libudev-device: use original negative errno

This commit is contained in:
Yu Watanabe 2018-08-24 14:30:24 +09:00
parent 71074e3a10
commit 1b6374d285

View File

@ -773,7 +773,7 @@ _public_ unsigned long long int udev_device_get_usec_since_initialized(struct ud
r = sd_device_get_usec_since_initialized(udev_device->device, &ts);
if (r < 0) {
errno = EINVAL;
errno = -r;
return 0;
}