diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-07-21 04:35:56 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-07-22 19:55:14 +0900 |
commit | 6c04fccb1db16e1a3140c01a536bff4ed342f8ed (patch) | |
tree | b2f85aed5c5cfff2fac732103da1c6f8520395ef /src/basic/siphash24.c | |
parent | 2859bb932bac2cba0a5200e35b50b404d4e3650e (diff) | |
download | systemd-6c04fccb1db16e1a3140c01a536bff4ed342f8ed.tar.gz |
util: make siphash24_compress_boolean() inline
This also changes the stored type from int to uint8_t in order to make
hash value endianness independent.
Diffstat (limited to 'src/basic/siphash24.c')
-rw-r--r-- | src/basic/siphash24.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/basic/siphash24.c b/src/basic/siphash24.c index 666431aa31..61180819b1 100644 --- a/src/basic/siphash24.c +++ b/src/basic/siphash24.c @@ -151,12 +151,6 @@ void siphash24_compress(const void *_in, size_t inlen, struct siphash *state) { } } -void siphash24_compress_boolean(bool in, struct siphash *state) { - int i = in; - - siphash24_compress(&i, sizeof i, state); -} - uint64_t siphash24_finalize(struct siphash *state) { uint64_t b; |