registry.machines_memory += sizeof(MACHINE);
+ registry.machines_count++;
dictionary_set(registry.machines, m->guid, m, sizeof(MACHINE));
return m;
else {
machine_guid = buf;
m = registry_machine_find(machine_guid);
- if(!m) {
- m = registry_machine_allocate(machine_guid, when);
- registry.machines_count++;
- }
+ if(!m) m = registry_machine_allocate(machine_guid, when);
}
}
registry.persons_memory += sizeof(PERSON);
+ registry.persons_count++;
dictionary_set(registry.persons, p->guid, p, sizeof(PERSON));
+
return p;
}
}
}
- if(!p) {
- p = registry_person_allocate(NULL, when);
- registry.persons_count++;
- }
+ if(!p) p = registry_person_allocate(NULL, when);
registry_persons_unlock();