git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
539bf7e
)
change strncasecmp() == 0 to STRCASENEQLEN()
author
Jim Meyering
<meyering@redhat.com>
Mon, 9 Nov 2009 21:33:36 +0000
(22:33 +0100)
committer
Jim Meyering
<meyering@redhat.com>
Mon, 9 Nov 2009 21:42:01 +0000
(22:42 +0100)
git grep -l 'strncasecmp *([^=]*!= *0'|xargs \
perl -pi -e 's/\bstrncasecmp( *\(.*?\)) *!= *0\b/STRCASENEQLEN$1/g'
fish/fish.c
patch
|
blob
|
history
diff --git
a/fish/fish.c
b/fish/fish.c
index
cd10296
..
0387eb7
100644
(file)
--- a/
fish/fish.c
+++ b/
fish/fish.c
@@
-1340,7
+1340,7
@@
resolve_win_path (const char *path)
char *ret;
size_t i;
- if (
strncasecmp (path, "win:", 4) != 0
) {
+ if (
STRCASENEQLEN (path, "win:", 4)
) {
ret = strdup (path);
if (ret == NULL)
perror ("strdup");