From: Yu Watanabe Date: Fri, 24 Jan 2025 14:47:44 +0000 (+0900) Subject: sd-device: make device_get_cached_sysattr_value() static X-Git-Tag: v258-rc1~1490^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a41f6e105a053a600ac5a47e1607f30b3b53146;p=thirdparty%2Fsystemd.git sd-device: make device_get_cached_sysattr_value() static --- diff --git a/src/libsystemd/sd-device/device-private.h b/src/libsystemd/sd-device/device-private.h index 11a27b01d6f..4165c85023b 100644 --- a/src/libsystemd/sd-device/device-private.h +++ b/src/libsystemd/sd-device/device-private.h @@ -35,7 +35,6 @@ int device_get_devnode_gid(sd_device *device, gid_t *ret); int device_chase(sd_device *device, const char *path, ChaseFlags flags, char **ret_resolved, int *ret_fd); void device_clear_sysattr_cache(sd_device *device); int device_cache_sysattr_value(sd_device *device, char *key, char *value, int error); -int device_get_cached_sysattr_value(sd_device *device, const char *key, const char **ret_value); void device_seal(sd_device *device); void device_set_is_initialized(sd_device *device); diff --git a/src/libsystemd/sd-device/sd-device.c b/src/libsystemd/sd-device/sd-device.c index ec129facba1..a40f0a63339 100644 --- a/src/libsystemd/sd-device/sd-device.c +++ b/src/libsystemd/sd-device/sd-device.c @@ -2350,7 +2350,7 @@ int device_cache_sysattr_value(sd_device *device, char *key, char *value, int er return 0; } -int device_get_cached_sysattr_value(sd_device *device, const char *key, const char **ret_value) { +static int device_get_cached_sysattr_value(sd_device *device, const char *key, const char **ret_value) { SysAttrCacheEntry *entry; assert(device);