summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-26 22:13:15 +0100
committerLennart Poettering <lennart@poettering.net>2018-11-26 22:31:15 +0100
commita3a98776ff8ee413690880cf371e10ccf14cdbb8 (patch)
treef34e41b242838aebec83a6524179f27c0dca0162 /src
parentsd-radv: no need to initialize r to zero (diff)
downloadsystemd-a3a98776ff8ee413690880cf371e10ccf14cdbb8.tar.xz
systemd-a3a98776ff8ee413690880cf371e10ccf14cdbb8.zip
sd-radv: per our CODING_STYLE don't use 'bool' in public headers
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd-network/sd-radv.c2
-rw-r--r--src/systemd/sd-radv.h9
2 files changed, 4 insertions, 7 deletions
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 <inttypes.h>
#include <net/ethernet.h>
#include <netinet/in.h>
-#include <stdbool.h>
#include <sys/types.h>
-#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,