chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core: epoll and signalfd has been moved into sd event loop
[elogind.git]
/
src
/
libsystemd-bus
/
bus-bloom.c
diff --git
a/src/libsystemd-bus/bus-bloom.c
b/src/libsystemd-bus/bus-bloom.c
index cb65e47b4c7d299be397faa11208288c1757fa73..c3ad9f6385eb87f9aefd886bc037b6e28255ef06 100644
(file)
--- a/
src/libsystemd-bus/bus-bloom.c
+++ b/
src/libsystemd-bus/bus-bloom.c
@@
-28,7
+28,7
@@
static inline void set_bit(uint64_t filter[], unsigned b) {
filter[b >> 6] |= 1ULL << (b & 63);
}
filter[b >> 6] |= 1ULL << (b & 63);
}
-void bloom_add_data(uint64_t filter[BLOOM_SIZE/8], const void *data, size_t n) {
+
static
void bloom_add_data(uint64_t filter[BLOOM_SIZE/8], const void *data, size_t n) {
uint16_t hash[8];
unsigned k = 0;
uint16_t hash[8];
unsigned k = 0;
@@
-49,6
+49,8
@@
void bloom_add_data(uint64_t filter[BLOOM_SIZE/8], const void *data, size_t n) {
for (k = 0; k < ELEMENTSOF(hash); k++)
set_bit(filter, hash[k] & 511);
for (k = 0; k < ELEMENTSOF(hash); k++)
set_bit(filter, hash[k] & 511);
+
+ /* log_debug("bloom: adding <%.*s>", (int) n, (char*) data); */
}
void bloom_add_pair(uint64_t filter[BLOOM_SIZE/8], const char *a, const char *b) {
}
void bloom_add_pair(uint64_t filter[BLOOM_SIZE/8], const char *a, const char *b) {