sd-device: make device_get_cached_sysattr_value() static

This commit is contained in:
Yu Watanabe
2025-01-24 23:59:42 +09:00
parent b3f5881c61
commit 8a41f6e105
2 changed files with 1 additions and 2 deletions
@@ -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);
+1 -1
View File
@@ -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);