{
assert_int_equal(data, check_user_data);
- if (MATCH(result->section, "Section1") &&
- MATCH(result->name, "Key1") &&
- MATCH(result->value, "Value1"))
+ if (!strncmp(result->section, "Section1", sizeof("Section1")) &&
+ !strncmp(result->name, "Key1", sizeof("Key1")) &&
+ !strncmp(result->value, "Value1", sizeof("Value1")))
checked1 = true;
- else if (MATCH(result->section, "Section2") &&
- MATCH(result->name, "Key2") &&
- MATCH(result->value, "Value2"))
+ else if (!strncmp(result->section, "Section2", sizeof("Section2")) &&
+ !strncmp(result->name, "Key2", sizeof("Key2")) &&
+ !strncmp(result->value, "Value2", sizeof("Value2")))
checked2 = true;
- else if (MATCH(result->section, "Section2") &&
- MATCH(result->name, "Key3") &&
- MATCH(result->value, "Value3"))
+ else if (!strncmp(result->section, "Section2", sizeof("Section2")) &&
+ !strncmp(result->name, "Key3", sizeof("Key3")) &&
+ !strncmp(result->value, "Value3", sizeof("Value3")))
checked3 = true;
else
garbage = true;