]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-device: rename return parameter of sd_device_get_devpath() to ret
authorLennart Poettering <lennart@poettering.net>
Mon, 4 Apr 2022 13:20:01 +0000 (15:20 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 4 Apr 2022 16:21:41 +0000 (18:21 +0200)
src/libsystemd/sd-device/sd-device.c

index 4f413880eb10bcab65fec392ecc0acc9237f7f9e..bf9217b649f2774219fe11d7776f68dc1a0cb365 100644 (file)
@@ -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;
 }