chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
networkd: set route protocol
[elogind.git]
/
src
/
libsystemd
/
sd-rtnl
/
test-rtnl.c
diff --git
a/src/libsystemd/sd-rtnl/test-rtnl.c
b/src/libsystemd/sd-rtnl/test-rtnl.c
index cd81acae7730f79f7760bf41a5a7c37437351535..4b6e5339d9ec05807d87f21df460e997df2ad01a 100644
(file)
--- a/
src/libsystemd/sd-rtnl/test-rtnl.c
+++ b/
src/libsystemd/sd-rtnl/test-rtnl.c
@@
-132,7
+132,7
@@
static void test_route(void) {
uint32_t index = 2, u32_data;
int r;
uint32_t index = 2, u32_data;
int r;
- r = sd_rtnl_message_new_route(NULL, &req, RTM_NEWROUTE, AF_INET);
+ r = sd_rtnl_message_new_route(NULL, &req, RTM_NEWROUTE, AF_INET
, RTPROT_STATIC
);
if (r < 0) {
log_error("Could not create RTM_NEWROUTE message: %s", strerror(-r));
return;
if (r < 0) {
log_error("Could not create RTM_NEWROUTE message: %s", strerror(-r));
return;
@@
-334,8
+334,8
@@
static void test_get_addresses(sd_rtnl *rtnl) {
for (m = reply; m; m = sd_rtnl_message_next(m)) {
uint16_t type;
for (m = reply; m; m = sd_rtnl_message_next(m)) {
uint16_t type;
- unsigned char
family,
scope, flags;
- int ifindex;
+ unsigned char scope, flags;
+ int
family,
ifindex;
assert_se(sd_rtnl_message_get_type(m, &type) >= 0);
assert_se(type == RTM_NEWADDR);
assert_se(sd_rtnl_message_get_type(m, &type) >= 0);
assert_se(type == RTM_NEWADDR);