summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-07 11:17:32 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-01-01 14:50:25 -0800
commitc46d912071dd8fad6c1ed532cbef26db34a639e9 (patch)
tree246413a71502c3a638d22099228d27242b4afadb /parse.c
parent72a6cb64b0aded790e44d97e71434a4eddb91f15 (diff)
downloadxorg-util-makedepend-c46d912071dd8fad6c1ed532cbef26db34a639e9.tar.gz
Call strrchr() instead of hand coding a custom version
Also correct comments on hand-coded custom strcmp() replacements Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.c b/parse.c
index 5915a81..92431ea 100644
--- a/parse.c
+++ b/parse.c
@@ -336,7 +336,7 @@ define2(const char *name, const char *val, struct inclist *file)
const char *s2;
int middle = (first + last) / 2;
- /* Fast inline strchr() */
+ /* Fast inline strcmp() */
s1 = name;
s2 = file->i_defs[middle]->s_name;
while (*s1++ == *s2++)
@@ -427,7 +427,7 @@ slookup(const char *symbol, struct inclist *file)
const char *s2;
int middle = (first + last) / 2;
- /* Fast inline strchr() */
+ /* Fast inline strcmp() */
s1 = symbol;
s2 = file->i_defs[middle]->s_name;
while (*s1++ == *s2++)