git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
convert uses of strcasecmp to STRCASEEQ
[libguestfs.git]
/
fish
/
edit.c
diff --git
a/fish/edit.c
b/fish/edit.c
index
1b6ce23
..
d30b3ca
100644
(file)
--- 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");