rem: while (read_next_module_name(list, moduleName, &bufferSize) == B_OK) {
add: for (; read_next_module_name(list, moduleName, &bufferSize) == B_OK; bufferSize = sizeof(moduleName)) {
context: disk_scanner_get_session_module(int deviceFD, off_t deviceSize, int32 blockSize,							session_module_info **sessionModule){	// Iterate through the list of session modules and return the first one	// that thinks, it is the right one.	status_t error = (sessionModule ? B_OK : B_BAD_VALUE);	void *list = NULL;	TRACE(("disk_scanner: get_session_module(%d, %lld, %ld)\n", deviceFD,		   deviceSize, blockSize));	if (error == B_OK && ((list = open_module_list(kSessionModulePrefix)))) {		char moduleName[B_PATH_NAME_LENGTH];		size_t bufferSize = sizeof(moduleName);		while (read_next_module_name(list, moduleName, &bufferSize)			   == B_OK) {			session_module_info *module = NULL;			if (get_module(moduleName, (module_info**)&module) == B_OK) {				if (module->identify(deviceFD, deviceSize, blockSize)) {					// found module					*sessionModule = module;					break;				}				put_module(moduleName);			}		}		close_module_list(list);	}	// set result	if (error == B_OK && !*sessionModule)		error = B_ENTRY_NOT_FOUND;	return error;}