rem: }
add: } else status = module_enter_base_path(iterator);
context: read_next_module_name(void *cookie, char *buf, size_t *bufsize){	module_iterator *iter = (module_iterator *)cookie;	int res;	*buf = '\0';	if (!iter)		return EINVAL;	res = iter->err;	SHOW_FLOW0(3, "looking for next module\n");	while (res == B_NO_ERROR) {			SHOW_FLOW0(3, "searching for module\n");		if (iter->cur_dir == NULL) {			res = module_enter_base_path(iter);		} else {			if ((res = module_traverse_dir(iter)) == B_NO_ERROR) {				/* By this point we should have a valid pointer to a module_info structure				 * in iter->cur_header				 */				if (process_module_info(iter, buf, bufsize) == B_NO_ERROR)					break;						}		}	}	/* did we get something?? */	if (*buf == '\0')		res = ENOENT;	iter->err = res;	SHOW_FLOW(3, "finished with status %s\n", strerror(iter->err));	return iter->err;}