mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Remove all traces of reg_char.
* sysdeps/generic/memcopy.h (reg_char): Delete. * debug/strcat_chk.c: Use char, not reg_char. * debug/strcpy_chk.c: Likewise. * debug/strncat_chk.c: Likewise. * debug/strncpy_chk.c: Likewise. * string/memchr.c: Likewise. * string/memrchr.c: Likewise. * string/rawmemchr.c: Likewise. * string/strcat.c: Likewise. * string/strchr.c: Likewise. * string/strchrnul.c: Likewise. * string/strcmp.c: Likewise. * string/strcpy.c: Likewise. * string/strncat.c: Likewise. * string/strncmp.c: Likewise. * string/strncpy.c: Likewise.
This commit is contained in:
@ -28,7 +28,7 @@ __strcat_chk (dest, src, destlen)
|
||||
{
|
||||
char *s1 = dest;
|
||||
const char *s2 = src;
|
||||
reg_char c;
|
||||
char c;
|
||||
|
||||
/* Find the end of the string. */
|
||||
do
|
||||
|
@ -28,7 +28,7 @@ __strcpy_chk (dest, src, destlen)
|
||||
const char *src;
|
||||
size_t destlen;
|
||||
{
|
||||
reg_char c;
|
||||
char c;
|
||||
char *s = (char *) src;
|
||||
const ptrdiff_t off = dest - s;
|
||||
|
||||
|
@ -27,7 +27,7 @@ __strncat_chk (s1, s2, n, s1len)
|
||||
size_t n;
|
||||
size_t s1len;
|
||||
{
|
||||
reg_char c;
|
||||
char c;
|
||||
char *s = s1;
|
||||
|
||||
/* Find the end of S1. */
|
||||
|
@ -26,7 +26,7 @@ __strncpy_chk (s1, s2, n, s1len)
|
||||
size_t n;
|
||||
size_t s1len;
|
||||
{
|
||||
reg_char c;
|
||||
char c;
|
||||
char *s = s1;
|
||||
|
||||
if (__builtin_expect (s1len < n, 0))
|
||||
|
Reference in New Issue
Block a user