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:
parent
71074e3a10
commit
1b6374d285
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user