summaryrefslogtreecommitdiff
path: root/src/libsystemd-rtnl/test-rtnl.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2013-11-08 11:18:51 +0100
committerTom Gundersen <teg@jklm.no>2013-11-08 12:15:07 +0100
commit8e1519bddb5eefedac2d9c4bf6f6e6b4d5e8ce81 (patch)
tree953b085c292dec6af3d6fd61865e25f42c220787 /src/libsystemd-rtnl/test-rtnl.c
parentc6581cc14f2d36b49c72542220a7ed9d33bb8944 (diff)
test-rtnl: fix typo
Diffstat (limited to 'src/libsystemd-rtnl/test-rtnl.c')
-rw-r--r--src/libsystemd-rtnl/test-rtnl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-rtnl/test-rtnl.c b/src/libsystemd-rtnl/test-rtnl.c
index 39a83f3532..912cc66ba7 100644
--- a/src/libsystemd-rtnl/test-rtnl.c
+++ b/src/libsystemd-rtnl/test-rtnl.c
@@ -137,7 +137,7 @@ int main(void) {
assert(sd_rtnl_message_get_type(r, &type) >= 0);
assert(type == RTM_NEWLINK);
- assert(sd_rtnl_message_read(m, &type, data) == 0);
+ assert(sd_rtnl_message_read(m, &type, &data) == 0);
assert((r = sd_rtnl_message_unref(r)) == NULL);
assert(sd_rtnl_send_with_reply_and_block(rtnl, m, -1, &r) == -EPERM);
@@ -153,7 +153,7 @@ int main(void) {
assert(type == IFLA_MTU);
assert(*mtu_reply == 0);
- assert(sd_rtnl_message_read(m, &type, data) == 0);
+ assert(sd_rtnl_message_read(m, &type, &data) == 0);
assert(sd_rtnl_send_with_reply_and_block(rtnl, m, -1, &r) >= 0);
while (sd_rtnl_message_read(r, &type, &data) > 0) {