mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Fix function typecasts.
This commit is contained in:
parent
48a00f1320
commit
deb8a3b7c9
@ -298,17 +298,15 @@ int dev_cache_init(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
iterate_fn _check_closed(void *data)
|
void _check_closed(struct device *dev)
|
||||||
{
|
{
|
||||||
struct device *dev = (struct device *) data;
|
|
||||||
|
|
||||||
if (dev->fd >= 0)
|
if (dev->fd >= 0)
|
||||||
log_err("Device '%s' has been left open.", dev_name(dev));
|
log_err("Device '%s' has been left open.", dev_name(dev));
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void _check_for_open_devices(void)
|
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)
|
void dev_cache_exit(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user