mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 08:56:15 +09:00
sd-device: rename return parameter of sd_device_get_devpath() to ret
This commit is contained in:
@@ -1047,14 +1047,15 @@ _public_ int sd_device_get_driver(sd_device *device, const char **ret) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
_public_ int sd_device_get_devpath(sd_device *device, const char **devpath) {
|
||||
_public_ int sd_device_get_devpath(sd_device *device, const char **ret) {
|
||||
assert_return(device, -EINVAL);
|
||||
|
||||
assert(device->devpath);
|
||||
assert(device->devpath[0] == '/');
|
||||
|
||||
if (devpath)
|
||||
*devpath = device->devpath;
|
||||
if (ret)
|
||||
*ret = device->devpath;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user