git.annexia.org
/
hivex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a43803c
)
use STREQ, not strcmp: part 1
author
Jim Meyering
<meyering@redhat.com>
Mon, 9 Nov 2009 13:30:11 +0000
(14:30 +0100)
committer
Richard Jones
<rjones@redhat.com>
Fri, 19 Feb 2010 14:51:45 +0000
(14:51 +0000)
git grep -l 'strcmp *([^=]*== *0'|xargs \
perl -pi -e 's/\bstrcmp( *\(.*?\)) *== *0/STREQ$1/g'
hivex/hivex.c
patch
|
blob
|
history
diff --git
a/hivex/hivex.c
b/hivex/hivex.c
index
4b0deeb
..
e47dd23
100644
(file)
--- a/
hivex/hivex.c
+++ b/
hivex/hivex.c
@@
-235,7
+235,7
@@
hivex_open (const char *filename, int flags)
h->msglvl = flags & HIVEX_OPEN_MSGLVL_MASK;
const char *debug = getenv ("HIVEX_DEBUG");
- if (debug &&
strcmp (debug, "1") == 0
)
+ if (debug &&
STREQ (debug, "1")
)
h->msglvl = 2;
if (h->msglvl >= 2)