diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-11-08 18:11:09 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-11-08 18:12:45 +0100 |
commit | 9588bc32096fc8342bfd8b989689717186d7d86e (patch) | |
tree | 774cf93f0544add18f8307714062cc18f97838da /src/libsystemd-bus | |
parent | f842cd74eacc2960ac849766eb786059317415ee (diff) |
Remove dead code and unexport some calls
"make check-api-unused" informs us about code that is not used anymore
or that is exported but only used internally. Fix these all over the
place.
Diffstat (limited to 'src/libsystemd-bus')
-rw-r--r-- | src/libsystemd-bus/bus-bloom.c | 2 | ||||
-rw-r--r-- | src/libsystemd-bus/bus-bloom.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/libsystemd-bus/bus-bloom.c b/src/libsystemd-bus/bus-bloom.c index 04bee8581e..c3ad9f6385 100644 --- 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); } -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; diff --git a/src/libsystemd-bus/bus-bloom.h b/src/libsystemd-bus/bus-bloom.h index 1bf14a3331..422eb4e01a 100644 --- a/src/libsystemd-bus/bus-bloom.h +++ b/src/libsystemd-bus/bus-bloom.h @@ -25,6 +25,5 @@ #define BLOOM_SIZE 64 -void bloom_add_data(uint64_t filter[BLOOM_SIZE/8], const void *data, size_t n); void bloom_add_pair(uint64_t filter[BLOOM_SIZE/8], const char *a, const char *b); void bloom_add_prefixes(uint64_t filter[BLOOM_SIZE/8], const char *a, const char *b, char sep); |