Beispiel #1
0
/*
 * Go over all bridges and call iterator function.
 * if iterator returns non-zero then stop.
 */
static int br_foreach_bridge(int (*iterator)(const char *, void *), 
		     void *arg)
{
	int ret;

	ret = new_foreach_bridge(iterator, arg);
	if (ret <= 0)
		ret = old_foreach_bridge(iterator, arg);

	return ret;
}
Beispiel #2
0
/*
 * Go over all bridges and call iterator function.
 * if iterator returns non-zero then stop.
 */
static int br_foreach_bridge(int (*iterator) (const char *, void *), void *arg)
{
	int ret;
#ifdef HAVE_LIBSYSFS

	ret = new_foreach_bridge(iterator, arg);
	if (ret <= 0)
#endif
		ret = old_foreach_bridge(iterator, arg);

	return ret;
}