]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/hashmap.c
siphash24: let siphash24_finalize() and siphash24() return the result directly 1923/head
authorDaniel Mack <daniel@zonque.org>
Mon, 16 Nov 2015 22:17:52 +0000 (23:17 +0100)
committerDaniel Mack <daniel@zonque.org>
Mon, 16 Nov 2015 22:17:52 +0000 (23:17 +0100)
commit933f9caeeb2b3c1b951d330e04beb04226e5a890
treedc36a6ddd84b060590c4885db7b6c3e9e91081eb
parent5cd6491b71008334daa9965464e038dc3e39948a
siphash24: let siphash24_finalize() and siphash24() return the result directly

Rather than passing a pointer to return the result, return it directly
from the function calls.

Also, return the result in native endianess, and let the callers care
about the conversion. For hash tables and bloom filters, we don't care,
but in order to keep MAC addresses and DHCP client IDs stable, we
explicitly convert to LE.
14 files changed:
src/basic/hashmap.c
src/basic/siphash24.c
src/basic/siphash24.h
src/import/pull-common.c
src/journal/journald-rate-limit.c
src/libsystemd-network/dhcp-identifier.c
src/libsystemd-network/network-internal.c
src/libsystemd-network/sd-dhcp-server.c
src/libsystemd-network/sd-ipv4ll.c
src/libsystemd-network/test-dhcp-server.c
src/libsystemd/sd-bus/bus-bloom.c
src/network/networkd-netdev.c
src/nspawn/nspawn-network.c
src/test/test-siphash24.c