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: get_partition_module_block(int deviceFD, off_t sessionOffset,						   off_t sessionSize, const uchar *block,						   int32 blockSize,						   partition_module_info **partitionModule){	// Iterate through the list of partition modules and return the first one	// that thinks, it is the right one.	status_t error = (partitionModule && block ? B_OK : B_BAD_VALUE);	void *list = NULL;	if (error == B_OK && ((list = open_module_list(kPartitionModulePrefix)))) {		char moduleName[B_PATH_NAME_LENGTH];		size_t bufferSize = sizeof(moduleName);		while (read_next_module_name(list, moduleName, &bufferSize)			   == B_OK) {			partition_module_info *module = NULL;			TRACE(("disk_scanner: trying partition module: `%s'\n", moduleName));			if (get_module(moduleName, (module_info**)&module) == B_OK) {				if (module->identify(deviceFD, sessionOffset, sessionSize,									 block, blockSize)) {					// found module					*partitionModule = module;					break;				}				put_module(moduleName);			}		}		close_module_list(list);	}	// set result	if (error == B_OK && !*partitionModule)		error = B_ENTRY_NOT_FOUND;	return error;}