1
0
mirror of https://github.com/CovidBraceletPrj/CovidBracelet.git synced 2024-12-04 16:45:43 +01:00

Rename bloom_init to bloom_create

This commit is contained in:
H1ghBre4k3r 2021-08-09 12:50:20 +02:00 committed by Patrick Rathje
parent 76ce19d94a
commit 2d0c298aa0
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#include "bloom.h"
#include "ens/storage.h"
bloom_filter_t* bloom_init(size_t size) {
bloom_filter_t* bloom_create(size_t size) {
bloom_filter_t* bloom = k_calloc(1, sizeof(bloom_filter_t));
bloom->size = size;
bloom->data = k_malloc(size * sizeof(uint8_t));

View File

@ -19,7 +19,7 @@ typedef struct bloom_filter {
/**
* Initialize the bloom filter on basis of the already registerred records.
*/
bloom_filter_t* bloom_init(size_t size);
bloom_filter_t* bloom_create(size_t size);
// TODO lome: maybe only use RPI (should be sufficient)
void bloom_add_record(bloom_filter_t* bloom, record_t* record);