From: Jim Meyering Date: Mon, 9 Nov 2009 13:30:11 +0000 (+0100) Subject: use STREQ, not strcmp: part 1 X-Git-Tag: 1.1.0~70 X-Git-Url: http://git.annexia.org/?p=hivex.git;a=commitdiff_plain;h=4457e5f3781710f4869491094afb83ed78709dbb use STREQ, not strcmp: part 1 git grep -l 'strcmp *([^=]*== *0'|xargs \ perl -pi -e 's/\bstrcmp( *\(.*?\)) *== *0/STREQ$1/g' --- 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)