diff options
author | Jim Meyering <meyering@redhat.com> | 2009-11-09 13:58:42 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-11-09 22:34:16 +0100 |
commit | 9353c6253d5fac1648b13ad9958468a2d9f6ad6f (patch) | |
tree | 083fa9f8de6150e9a4568e7e39455d8d6d99a412 /hivex/hivex.c | |
parent | 7cd4b6aeee3693463b03608a31cf53f21152c2e8 (diff) | |
download | libguestfs-9353c6253d5fac1648b13ad9958468a2d9f6ad6f.tar.gz libguestfs-9353c6253d5fac1648b13ad9958468a2d9f6ad6f.tar.xz libguestfs-9353c6253d5fac1648b13ad9958468a2d9f6ad6f.zip |
convert uses of strcasecmp to STRCASEEQ
git grep -l 'strcasecmp *([^=]*== *0'| xargs \
perl -pi -e 's/\bstrcasecmp( *\(.*?\)) *== *0/STRCASEEQ$1/'
Diffstat (limited to 'hivex/hivex.c')
-rw-r--r-- | hivex/hivex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hivex/hivex.c b/hivex/hivex.c index b20fe732..8ea2c2b4 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; } |