diff options
author | Jim Meyering <meyering@redhat.com> | 2009-11-09 14:30:11 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-02-19 14:51:45 +0000 |
commit | 4457e5f3781710f4869491094afb83ed78709dbb (patch) | |
tree | 5a32f2248e2e23e9e78aac84126cc41e67db7498 | |
parent | a43803c4a32c1942f1c6dda9723d7e673676fb9e (diff) | |
download | hivex-4457e5f3781710f4869491094afb83ed78709dbb.tar.gz hivex-4457e5f3781710f4869491094afb83ed78709dbb.tar.xz hivex-4457e5f3781710f4869491094afb83ed78709dbb.zip |
use STREQ, not strcmp: part 1
git grep -l 'strcmp *([^=]*== *0'|xargs \
perl -pi -e 's/\bstrcmp( *\(.*?\)) *== *0/STREQ$1/g'
-rw-r--r-- | hivex/hivex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hivex/hivex.c b/hivex/hivex.c index 4b0deeb..e47dd23 100644 --- 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) |