From: Yu Watanabe Date: Tue, 25 Oct 2022 20:12:54 +0000 (+0900) Subject: sd-device: make device_shallow_clone() static X-Git-Tag: v252~27^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=389954987adb22aca606a7db38d276cd0ec88787;p=thirdparty%2Fsystemd.git sd-device: make device_shallow_clone() static --- diff --git a/src/libsystemd/sd-device/device-private.c b/src/libsystemd/sd-device/device-private.c index cfe4af0fcc1..bc7a8386089 100644 --- a/src/libsystemd/sd-device/device-private.c +++ b/src/libsystemd/sd-device/device-private.c @@ -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; diff --git a/src/libsystemd/sd-device/device-private.h b/src/libsystemd/sd-device/device-private.h index 6e96cc264af..a59f130affc 100644 --- a/src/libsystemd/sd-device/device-private.h +++ b/src/libsystemd/sd-device/device-private.h @@ -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);