glibc/nss/nss_db
Wilco Dijkstra 32c7acd464 Replace rawmemchr (s, '\0') with strchr
Almost all uses of rawmemchr find the end of a string.  Since most targets use
a generic implementation, replacing it with strchr is better since that is
optimized by compilers into strlen (s) + s.  Also fix the generic rawmemchr
implementation to use a cast to unsigned char in the if statement.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2023-02-06 16:16:19 +00:00
..
db-init.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
db-initgroups.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
db-netgrp.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
db-open.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
db-XXX.c Replace rawmemchr (s, '\0') with strchr 2023-02-06 16:16:19 +00:00
nss_db.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00