summaryrefslogtreecommitdiffstats
path: root/daemon/realpath.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-11-09 13:58:42 +0100
committerJim Meyering <meyering@redhat.com>2009-11-09 22:34:16 +0100
commit9353c6253d5fac1648b13ad9958468a2d9f6ad6f (patch)
tree083fa9f8de6150e9a4568e7e39455d8d6d99a412 /daemon/realpath.c
parent7cd4b6aeee3693463b03608a31cf53f21152c2e8 (diff)
downloadlibguestfs-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 'daemon/realpath.c')
-rw-r--r--daemon/realpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/realpath.c b/daemon/realpath.c
index 0dc5fa5c..17e74ea7 100644
--- a/daemon/realpath.c
+++ b/daemon/realpath.c
@@ -113,7 +113,7 @@ do_case_sensitive_path (const char *path)
errno = 0;
while ((d = readdir (dir)) != NULL) {
- if (strcasecmp (d->d_name, name) == 0)
+ if (STRCASEEQ (d->d_name, name))
break;
}