Use 'virHashNew' internally which uses a default size.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
int
qemuMigrationDstErrorInit(virQEMUDriverPtr driver)
{
- driver->migrationErrors = virHashAtomicNew(64, qemuMigrationDstErrorFree);
+ driver->migrationErrors = virHashAtomicNew(qemuMigrationDstErrorFree);
if (driver->migrationErrors)
return 0;
else
virHashAtomicPtr
-virHashAtomicNew(ssize_t size,
- virHashDataFree dataFree)
+virHashAtomicNew(virHashDataFree dataFree)
{
virHashAtomicPtr hash;
if (!(hash = virObjectLockableNew(virHashAtomicClass)))
return NULL;
- if (!(hash->hash = virHashCreate(size, dataFree))) {
+ if (!(hash->hash = virHashNew(dataFree))) {
virObjectUnref(hash);
return NULL;
}
virHashTablePtr virHashNew(virHashDataFree dataFree);
virHashTablePtr virHashCreate(ssize_t size,
virHashDataFree dataFree);
-virHashAtomicPtr virHashAtomicNew(ssize_t size,
- virHashDataFree dataFree);
+virHashAtomicPtr virHashAtomicNew(virHashDataFree dataFree);
virHashTablePtr virHashCreateFull(ssize_t size,
virHashDataFree dataFree,
virHashKeyCode keyCode,