diff options
author | Jim Meyering <meyering@redhat.com> | 2009-11-09 14:06:37 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-11-09 22:34:16 +0100 |
commit | 29842da1379ece83eae98ee786b475ae161f1687 (patch) | |
tree | 950bccbb47aabca6e3d5d58f0bc60eb7b77e0173 /fish | |
parent | 9353c6253d5fac1648b13ad9958468a2d9f6ad6f (diff) | |
download | libguestfs-29842da1379ece83eae98ee786b475ae161f1687.tar.gz libguestfs-29842da1379ece83eae98ee786b475ae161f1687.tar.xz libguestfs-29842da1379ece83eae98ee786b475ae161f1687.zip |
convert strcasecmp(...) != 0 to STRCASENEQ(...)
git grep -E -l 'strcasecmp *\(.*!= ?0\b'|xargs \
perl -pi -e 's/\bstrcasecmp( ?\(.*?\)) != 0/STRCASENEQ$1/g'
Diffstat (limited to 'fish')
-rw-r--r-- | fish/fish.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fish/fish.c b/fish/fish.c index 9a89f55a..cac4e4a7 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -1107,11 +1107,11 @@ int is_true (const char *str) { return - strcasecmp (str, "0") != 0 && - strcasecmp (str, "f") != 0 && - strcasecmp (str, "false") != 0 && - strcasecmp (str, "n") != 0 && - strcasecmp (str, "no") != 0; + STRCASENEQ (str, "0") && + STRCASENEQ (str, "f") && + STRCASENEQ (str, "false") && + STRCASENEQ (str, "n") && + STRCASENEQ (str, "no"); } /* Free strings from a non-NULL terminated char** */ |