mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Remove dead variable in generic strcpy.
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
2013-02-08 Roland McGrath <roland@hack.frob.com>
|
2013-02-08 Roland McGrath <roland@hack.frob.com>
|
||||||
|
|
||||||
|
* string/strcpy.c: Removed unused variable.
|
||||||
|
|
||||||
* Makeconfig (+sysdep-includes): Define with := rather than =.
|
* Makeconfig (+sysdep-includes): Define with := rather than =.
|
||||||
Use an existing include/ subdir of each sysdeps dir before it.
|
Use an existing include/ subdir of each sysdeps dir before it.
|
||||||
|
|
||||||
|
@ -30,7 +30,6 @@ strcpy (dest, src)
|
|||||||
char c;
|
char c;
|
||||||
char *__unbounded s = (char *__unbounded) src;
|
char *__unbounded s = (char *__unbounded) src;
|
||||||
const ptrdiff_t off = dest - s - 1;
|
const ptrdiff_t off = dest - s - 1;
|
||||||
size_t n;
|
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
@ -39,8 +38,6 @@ strcpy (dest, src)
|
|||||||
}
|
}
|
||||||
while (c != '\0');
|
while (c != '\0');
|
||||||
|
|
||||||
n = s - src;
|
|
||||||
|
|
||||||
return dest;
|
return dest;
|
||||||
}
|
}
|
||||||
libc_hidden_builtin_def (strcpy)
|
libc_hidden_builtin_def (strcpy)
|
||||||
|
Reference in New Issue
Block a user