From: Jim Meyering Date: Mon, 9 Nov 2009 12:58:42 +0000 (+0100) Subject: convert uses of strcasecmp to STRCASEEQ X-Git-Tag: 1.1.0~72 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=39c10cf9df1e9d59e9048b7d78913562867c3c6b;p=hivex.git convert uses of strcasecmp to STRCASEEQ git grep -l 'strcasecmp *([^=]*== *0'| xargs \ perl -pi -e 's/\bstrcasecmp( *\(.*?\)) *== *0/STRCASEEQ$1/' --- 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; }