diff --git a/src/libsystemd-network/sd-radv.c b/src/libsystemd-network/sd-radv.c index faf353e866..acca734659 100644 --- a/src/libsystemd-network/sd-radv.c +++ b/src/libsystemd-network/sd-radv.c @@ -503,7 +503,7 @@ _public_ int sd_radv_set_preference(sd_radv *ra, unsigned preference) { return r; } -_public_ int sd_radv_add_prefix(sd_radv *ra, sd_radv_prefix *p, bool dynamic) { +_public_ int sd_radv_add_prefix(sd_radv *ra, sd_radv_prefix *p, int dynamic) { sd_radv_prefix *cur; int r; _cleanup_free_ char *addr_p = NULL; diff --git a/src/systemd/sd-radv.h b/src/systemd/sd-radv.h index 53c507d88c..93861b9d24 100644 --- a/src/systemd/sd-radv.h +++ b/src/systemd/sd-radv.h @@ -22,14 +22,11 @@ #include #include #include -#include #include -#include "sd-ndisc.h" - -#include "sd-event.h" - #include "_sd-common.h" +#include "sd-event.h" +#include "sd-ndisc.h" _SD_BEGIN_DECLARATIONS; @@ -61,7 +58,7 @@ int sd_radv_set_router_lifetime(sd_radv *ra, uint32_t router_lifetime); int sd_radv_set_managed_information(sd_radv *ra, int managed); int sd_radv_set_other_information(sd_radv *ra, int other); int sd_radv_set_preference(sd_radv *ra, unsigned preference); -int sd_radv_add_prefix(sd_radv *ra, sd_radv_prefix *p, bool dynamic); +int sd_radv_add_prefix(sd_radv *ra, sd_radv_prefix *p, int dynamic); sd_radv_prefix *sd_radv_remove_prefix(sd_radv *ra, const struct in6_addr *prefix, unsigned char prefixlen); int sd_radv_set_rdnss(sd_radv *ra, uint32_t lifetime,