Searched refs:newdb (Results 1 – 2 of 2) sorted by relevance
3748 struct tdb_header *newdb; in tdb_new_database() local3753 if (!(newdb = (struct tdb_header *)calloc(size, 1))) in tdb_new_database()3757 newdb->version = TDB_VERSION; in tdb_new_database()3758 newdb->hash_size = hash_size; in tdb_new_database()3761 tdb->map_ptr = (char *)newdb; in tdb_new_database()3762 memcpy(&tdb->header, newdb, sizeof(tdb->header)); in tdb_new_database()3764 CONVERT(*newdb); in tdb_new_database()3774 CONVERT(*newdb); in tdb_new_database()3775 memcpy(&tdb->header, newdb, sizeof(tdb->header)); in tdb_new_database()3777 memcpy(newdb->magic_food, TDB_MAGIC_FOOD, strlen(TDB_MAGIC_FOOD)+1); in tdb_new_database()[all …]
403 static WUR iwrc _db_save(IWDB db, bool newdb, uint8_t *mm) { in _db_save() argument420 if (newdb) { in _db_save()