mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-25 01:34:38 +03:00
Fix function typecasts.
This commit is contained in:
parent
1225ce7fe8
commit
851e2ebd32
@ -298,17 +298,15 @@ int dev_cache_init(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
iterate_fn _check_closed(void *data)
|
||||
void _check_closed(struct device *dev)
|
||||
{
|
||||
struct device *dev = (struct device *) data;
|
||||
|
||||
if (dev->fd >= 0)
|
||||
log_err("Device '%s' has been left open.", dev_name(dev));
|
||||
}
|
||||
|
||||
static inline void _check_for_open_devices(void)
|
||||
{
|
||||
hash_iterate(_cache.names, _check_closed);
|
||||
hash_iterate(_cache.names, (iterate_fn)_check_closed);
|
||||
}
|
||||
|
||||
void dev_cache_exit(void)
|
||||
|
Loading…
Reference in New Issue
Block a user