1
0
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:
Alasdair Kergon 2002-01-15 23:47:56 +00:00
parent 1225ce7fe8
commit 851e2ebd32

View File

@ -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)