X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=hivex%2Fhivex.c;h=8ea2c2b4b48eb7c72b46830c4a3771bf519ed27f;hp=b20fe732d2117940495a9a26610e712688a51c2e;hb=9353c6253d5fac1648b13ad9958468a2d9f6ad6f;hpb=7cd4b6aeee3693463b03608a31cf53f21152c2e8;ds=sidebyside diff --git a/hivex/hivex.c b/hivex/hivex.c index b20fe73..8ea2c2b 100644 --- a/hivex/hivex.c +++ b/hivex/hivex.c @@ -725,7 +725,7 @@ hivex_node_get_child (hive_h *h, hive_node_h node, const char *nname) for (i = 0; children[i] != 0; ++i) { name = hivex_node_name (h, children[i]); if (!name) goto error; - if (strcasecmp (name, nname) == 0) { + if (STRCASEEQ (name, nname)) { ret = children[i]; break; } @@ -856,7 +856,7 @@ hivex_node_get_value (hive_h *h, hive_node_h node, const char *key) for (i = 0; values[i] != 0; ++i) { name = hivex_value_key (h, values[i]); if (!name) goto error; - if (strcasecmp (name, key) == 0) { + if (STRCASEEQ (name, key)) { ret = values[i]; break; }