diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-10-29 17:32:21 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-10-29 17:33:33 +0900 |
commit | 5a937ea2f66ced76dcaa2075382c041998110185 (patch) | |
tree | ed8ba4122fb77bdfd44a24355d2f66d45932f6f2 /src/libudev | |
parent | 78ffb476f2129d9da1c9fa848f0e10dc12a1a4ee (diff) | |
download | systemd-5a937ea2f66ced76dcaa2075382c041998110185.tar.gz systemd-5a937ea2f66ced76dcaa2075382c041998110185.tar.bz2 systemd-5a937ea2f66ced76dcaa2075382c041998110185.zip |
sd-device: make sd_device_get_is_initialized() returns is_initialized by return value
Diffstat (limited to 'src/libudev')
-rw-r--r-- | src/libudev/libudev-device.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libudev/libudev-device.c b/src/libudev/libudev-device.c index 1c3d67a8f5..b6ccef7d8e 100644 --- a/src/libudev/libudev-device.c +++ b/src/libudev/libudev-device.c @@ -819,17 +819,17 @@ _public_ struct udev_list_entry *udev_device_get_sysattr_list_entry(struct udev_ * Returns: 1 if the device is set up. 0 otherwise. **/ _public_ int udev_device_get_is_initialized(struct udev_device *udev_device) { - int r, initialized; + int r; assert_return(udev_device, -EINVAL); - r = sd_device_get_is_initialized(udev_device->device, &initialized); + r = sd_device_get_is_initialized(udev_device->device); if (r < 0) { errno = -r; return 0; } - return initialized; + return r; } /** |