diff options
Diffstat (limited to 'test/plist_cmp.c')
-rw-r--r-- | test/plist_cmp.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/test/plist_cmp.c b/test/plist_cmp.c index 2af3f63..1b4a36a 100644 --- a/test/plist_cmp.c +++ b/test/plist_cmp.c @@ -127,19 +127,8 @@ int main(int argc, char *argv[]) plist_1[size_in1] = '\0'; plist_2[size_in2] = '\0'; - if (memcmp(plist_1, "bplist00", 8) == 0) - plist_from_bin(plist_1, size_in1, &root_node1); - else if (plist_1[0] == '[' || plist_1[0] == '{') - plist_from_json(plist_1, size_in1, &root_node1); - else - plist_from_xml(plist_1, size_in1, &root_node1); - - if (memcmp(plist_2, "bplist00", 8) == 0) - plist_from_bin(plist_2, size_in2, &root_node2); - else if (plist_2[0] == '[' || plist_2[0] == '{') - plist_from_json(plist_2, size_in2, &root_node2); - else - plist_from_xml(plist_2, size_in2, &root_node2); + plist_from_memory(plist_1, size_in1, &root_node1); + plist_from_memory(plist_2, size_in2, &root_node2); if (!root_node1 || !root_node2) { |