1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/gnrc_netif: remove cast from test_netif_get_name()

This commit is contained in:
Benjamin Valentin 2022-05-10 22:18:54 +02:00
parent 869c5f37a7
commit 67f9049044

View File

@ -1298,7 +1298,7 @@ static void test_netif_get_name(void)
TEST_ASSERT_NOT_NULL(netif);
res = netif_get_name(netif, name);
sprintf(exp_name, "%d", (int) ((gnrc_netif_t *)netif)->pid);
sprintf(exp_name, "%d", netif_get_id(netif));
TEST_ASSERT_EQUAL_INT(strlen(exp_name), res);
TEST_ASSERT_EQUAL_STRING(&exp_name[0], &name[0]);
}