projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fb9e9c
)
(nextarg): Prefer the notation `STREQ (a, b)' over `strcmp (a, b) == 0'.
author
Jim Meyering
<jim@meyering.net>
Tue, 1 Jun 2004 12:52:14 +0000
(12:52 +0000)
committer
Jim Meyering
<jim@meyering.net>
Tue, 1 Jun 2004 12:52:14 +0000
(12:52 +0000)
src/expr.c
patch
|
blob
|
history
diff --git
a/src/expr.c
b/src/expr.c
index d085b4be787dda6be6e5f9404ac04d305b18fe06..d1500380cf1a9aab9a58bb60ad881a09f5d01826 100644
(file)
--- a/
src/expr.c
+++ b/
src/expr.c
@@
-368,7
+368,7
@@
nextarg (char const *str)
return 0;
else
{
- bool r =
strcmp (*args, str) == 0
;
+ bool r =
STREQ (*args, str)
;
args += r;
return r;
}