diff options
author | Luca Deri <deri@ntop.org> | 2021-09-27 12:41:40 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2021-09-27 12:41:40 +0200 |
commit | b9ccff0761532b65a26edb1f7ac9f80c3ff58aa1 (patch) | |
tree | 5e02a40a6ef403653fd0c0a4a0a6d2c9387ca1cd /src/lib/ndpi_bitmap.c | |
parent | 241ee32cbc283360fe7882b5d8f8dde1d3ed2640 (diff) |
Compilation fixed on CentOS 7
Bitmap APi changes
Diffstat (limited to 'src/lib/ndpi_bitmap.c')
-rw-r--r-- | src/lib/ndpi_bitmap.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/lib/ndpi_bitmap.c b/src/lib/ndpi_bitmap.c index ecb238da7..17ba59b00 100644 --- a/src/lib/ndpi_bitmap.c +++ b/src/lib/ndpi_bitmap.c @@ -103,7 +103,7 @@ ndpi_bitmap* ndpi_bitmap_deserialize(char *buf) { /* ******************************************* */ /* b = b & b_and */ -void ndpi_bitmap_and(ndpi_bitmap* b, ndpi_bitmap* b_and) { +void ndpi_bitmap_and(ndpi_bitmap* a, ndpi_bitmap* b_and) { roaring_bitmap_and_inplace((ndpi_bitmap*)a, (ndpi_bitmap*)b_and); } @@ -116,20 +116,13 @@ void ndpi_bitmap_or(ndpi_bitmap* a, ndpi_bitmap* b_or) { /* ******************************************* */ -/* b = b | b_or */ -void ndpi_bitmap_or(ndpi_bitmap* a, ndpi_bitmap* b_or) { - roaring_bitmap_or_inplace((ndpi_bitmap*)a, (ndpi_bitmap*)b_or); -} - -/* ******************************************* */ - ndpi_bitmap_iterator* ndpi_bitmap_iterator_alloc(ndpi_bitmap* b) { return(roaring_create_iterator((ndpi_bitmap*)b)); } /* ******************************************* */ -ndpi_bitmap_iterator* ndpi_bitmap_iterator_free(ndpi_bitmap* b) { +void ndpi_bitmap_iterator_free(ndpi_bitmap* b) { return(roaring_free_uint32_iterator((ndpi_bitmap*)b)); } |