]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-device: make device_add_property_internal() inline
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 16 Nov 2020 10:28:40 +0000 (19:28 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 25 Nov 2020 20:58:32 +0000 (05:58 +0900)
src/libsystemd/sd-device/device-internal.h
src/libsystemd/sd-device/sd-device.c

index 3f81cef79622a94036667817dd879ee7569e195f..da630f18fc27af176ec21a9139800a4224e34cdf 100644 (file)
@@ -88,7 +88,9 @@ struct sd_device {
 
 int device_new_aux(sd_device **ret);
 int device_add_property_aux(sd_device *device, const char *key, const char *value, bool db);
-int device_add_property_internal(sd_device *device, const char *key, const char *value);
+static inline int device_add_property_internal(sd_device *device, const char *key, const char *value) {
+        return device_add_property_aux(device, key, value, false);
+}
 int device_read_uevent_file(sd_device *device);
 
 int device_set_syspath(sd_device *device, const char *_syspath, bool verify);
index bfa0781773713ca370d5a42ccbdfb211be1241e2..e895b7818a3edce4a4565c5846278ea852c9cf9a 100644 (file)
@@ -128,10 +128,6 @@ int device_add_property_aux(sd_device *device, const char *_key, const char *_va
         return 0;
 }
 
-int device_add_property_internal(sd_device *device, const char *key, const char *value) {
-        return device_add_property_aux(device, key, value, false);
-}
-
 int device_set_syspath(sd_device *device, const char *_syspath, bool verify) {
         _cleanup_free_ char *syspath = NULL;
         const char *devpath;