diff options
author | Jim Meyering <meyering@redhat.com> | 2009-11-09 13:58:42 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-11-09 22:34:16 +0100 |
commit | 9353c6253d5fac1648b13ad9958468a2d9f6ad6f (patch) | |
tree | 083fa9f8de6150e9a4568e7e39455d8d6d99a412 /fish/more.c | |
parent | 7cd4b6aeee3693463b03608a31cf53f21152c2e8 (diff) | |
download | libguestfs-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/more.c')
-rw-r--r-- | fish/more.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fish/more.c b/fish/more.c index 9abb51bb..a32d5b41 100644 --- a/fish/more.c +++ b/fish/more.c @@ -42,7 +42,7 @@ do_more (const char *cmd, int argc, char *argv[]) } /* Choose a pager. */ - if (strcasecmp (cmd, "less") == 0) + if (STRCASEEQ (cmd, "less")) pager = "less"; else { pager = getenv ("PAGER"); |