while(get_next_sem_info(0, &cookie, &info) == B_OK) if(strcmp(name, info.name) == 0) { ret = info.sem; break; }  return ret;
while(get_next_sem_info(0, &cookie, &info) == B_OK) { if(strcmp(name, info.name) == 0) { ret = info.sem; break; } } return ret;
static sem_id my_find_sem(const char *name){	sem_id	ret = B_ERROR;	/* Get the sem_info for every sempahore in this team. */	sem_info info;	int32 cookie = 0;	while(get_next_sem_info(0, &cookie, &info) == B_OK)		if(strcmp(name, info.name) == 0)		{			ret = info.sem;			break;		}	return ret;}