summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-05-23 18:33:17 +0200
committerLennart Poettering <lennart@poettering.net>2016-05-26 15:34:43 +0200
commit38958cd66e87037c75109408bf4093be21811eba (patch)
treec4e97d44b988f655003eefdb11bc9ff0d728865a /src/network
parentff0c5ebd4a29be137080021f741b072d4c44b1a9 (diff)
ipv4ll: change "seed" parameter to be uint64_t
Let's make clear this always has the same size, since otherwise it's not useful for reproducible runs, which this is really about however.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkd-ipv4ll.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/network/networkd-ipv4ll.c b/src/network/networkd-ipv4ll.c
index a41f231f8c..735c231a4c 100644
--- a/src/network/networkd-ipv4ll.c
+++ b/src/network/networkd-ipv4ll.c
@@ -215,9 +215,7 @@ int ipv4ll_configure(Link *link) {
if (link->udev_device) {
r = net_get_unique_predictable_data(link->udev_device, &seed);
if (r >= 0) {
- assert_cc(sizeof(unsigned) <= 8);
-
- r = sd_ipv4ll_set_address_seed(link->ipv4ll, (unsigned)seed);
+ r = sd_ipv4ll_set_address_seed(link->ipv4ll, seed);
if (r < 0)
return r;
}