summaryrefslogtreecommitdiffstats
path: root/fish/fish.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-11-09 15:03:01 +0100
committerJim Meyering <meyering@redhat.com>2009-11-09 22:34:16 +0100
commit539bf7e8983c53c4cf79ffa64302bef1585bec31 (patch)
tree86393065cadc2b280cafa6956798d87c37740dcd /fish/fish.c
parent9a8889e4d0c532b9f77af3a9cc7aae06adebfb83 (diff)
downloadlibguestfs-539bf7e8983c53c4cf79ffa64302bef1585bec31.tar.gz
libguestfs-539bf7e8983c53c4cf79ffa64302bef1585bec31.tar.xz
libguestfs-539bf7e8983c53c4cf79ffa64302bef1585bec31.zip
use STREQ, not strcmp: part 2
git grep -l 'strcmp *([^=]*!= *0'|xargs \ perl -pi -e 's/\bstrcmp( *\(.*?\)) *!= *0\b/STRNEQ$1/g'
Diffstat (limited to 'fish/fish.c')
-rw-r--r--fish/fish.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fish/fish.c b/fish/fish.c
index 869366be..cd102966 100644
--- a/fish/fish.c
+++ b/fish/fish.c
@@ -762,7 +762,7 @@ cmdline (char *argv[], int optind, int argc)
params = &argv[optind];
/* Search for end of command list or ":" ... */
- while (optind < argc && strcmp (argv[optind], ":") != 0)
+ while (optind < argc && STRNEQ (argv[optind], ":"))
optind++;
if (optind == argc) {