diff options
Diffstat (limited to 'src/libsystemd-rtnl/test-rtnl.c')
-rw-r--r-- | src/libsystemd-rtnl/test-rtnl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsystemd-rtnl/test-rtnl.c b/src/libsystemd-rtnl/test-rtnl.c index bfcfc85d93..d7a243a97e 100644 --- a/src/libsystemd-rtnl/test-rtnl.c +++ b/src/libsystemd-rtnl/test-rtnl.c @@ -42,15 +42,15 @@ static void test_link_configure(sd_rtnl *rtnl, int ifindex) { assert(sd_rtnl_message_append(message, IFLA_ADDRESS, ether_aton(mac)) >= 0); assert(sd_rtnl_message_append(message, IFLA_MTU, &mtu) >= 0); - assert(sd_rtnl_message_read(message, &type, &data) >= 0); + assert(sd_rtnl_message_read(message, &type, &data) > 0); assert(type == IFLA_IFNAME); assert(streq(name, (char *) data)); - assert(sd_rtnl_message_read(message, &type, &data) >= 0); + assert(sd_rtnl_message_read(message, &type, &data) > 0); assert(type == IFLA_ADDRESS); assert(streq(mac, ether_ntoa(data))); - assert(sd_rtnl_message_read(message, &type, &data) >= 0); + assert(sd_rtnl_message_read(message, &type, &data) > 0); assert(type == IFLA_MTU); assert(mtu == *(unsigned int *) data); |