]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-device: make device_shallow_clone() static 25137/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 25 Oct 2022 20:12:54 +0000 (05:12 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 25 Oct 2022 20:12:54 +0000 (05:12 +0900)
src/libsystemd/sd-device/device-private.c
src/libsystemd/sd-device/device-private.h

index cfe4af0fcc15bc6792f4a87918d1c54dc3d49207..bc7a838608996b81df0497e15d9a6c0006d99813 100644 (file)
@@ -664,7 +664,7 @@ int device_rename(sd_device *device, const char *name) {
         return device_add_property_internal(device, "INTERFACE", name);
 }
 
-int device_shallow_clone(sd_device *device, sd_device **ret) {
+static int device_shallow_clone(sd_device *device, sd_device **ret) {
         _cleanup_(sd_device_unrefp) sd_device *dest = NULL;
         const char *val = NULL;
         int r;
index 6e96cc264af0d918d7e89b4ec0433806b828c02f..a59f130affc04acb0378fa12d6e896c15fcb8fc7 100644 (file)
@@ -54,7 +54,6 @@ int device_get_properties_nulstr(sd_device *device, const char **ret_nulstr, siz
 int device_get_properties_strv(sd_device *device, char ***ret);
 
 int device_rename(sd_device *device, const char *name);
-int device_shallow_clone(sd_device *device, sd_device **ret);
 int device_clone_with_db(sd_device *device, sd_device **ret);
 
 int device_tag_index(sd_device *dev, sd_device *dev_old, bool add);