summaryrefslogtreecommitdiffstats
path: root/fish/edit.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 /fish/edit.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 'fish/edit.c')
-rw-r--r--fish/edit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fish/edit.c b/fish/edit.c
index 1b6ce23c..d30b3cad 100644
--- a/fish/edit.c
+++ b/fish/edit.c
@@ -88,9 +88,9 @@ do_edit (const char *cmd, int argc, char *argv[])
}
/* Choose an editor. */
- if (strcasecmp (cmd, "vi") == 0)
+ if (STRCASEEQ (cmd, "vi"))
editor = "vi";
- else if (strcasecmp (cmd, "emacs") == 0)
+ else if (STRCASEEQ (cmd, "emacs"))
editor = "emacs -nw";
else {
editor = getenv ("EDITOR");