sd-device: make device_get_cached_sysattr_value() static
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user