libmultipath: remove FREE_CONST() again
[multipath-tools/.git] / tests / uevent.c
index b7d6458..acfcb14 100644 (file)
@@ -169,44 +169,44 @@ static void test_major_bad_8(void **state)
 static void test_dm_name_good(void **state)
 {
        struct uevent *uev = *state;
-       const char *name = uevent_get_dm_name(uev);
+       char *name = uevent_get_dm_name(uev);
 
        assert_string_equal(name, DM_NAME);
-       free((void*)name);
+       FREE(name);
 }
 
 static void test_dm_name_bad_0(void **state)
 {
        struct uevent *uev = *state;
-       const char *name;
+       char *name;
 
        uev->envp[3] = "DM_NAME" DM_NAME;
        name = uevent_get_dm_name(uev);
        assert_ptr_equal(name, NULL);
-       free((void*)name);
+       FREE(name);
 }
 
 static void test_dm_name_bad_1(void **state)
 {
        struct uevent *uev = *state;
-       const char *name;
+       char *name;
 
        uev->envp[3] = "DM_NAMES=" DM_NAME;
        name = uevent_get_dm_name(uev);
        assert_ptr_equal(name, NULL);
-       free((void*)name);
+       FREE(name);
 }
 
 static void test_dm_name_good_1(void **state)
 {
        struct uevent *uev = *state;
-       const char *name;
+       char *name;
 
        /* Note we change index 2 here */
        uev->envp[2] = "DM_NAME=" DM_NAME;
        name = uevent_get_dm_name(uev);
        assert_string_equal(name, DM_NAME);
-       free((void*)name);
+       FREE(name);
 }
 
 static void test_dm_uuid_false_0(void **state)