aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2013-02-08 10:46:32 -0800
committerRoland McGrath <roland@hack.frob.com>2013-02-08 10:46:32 -0800
commit7f3e75f87a93265e5a9feb1ba320f4b19f29cd67 (patch)
treea464767395626b73c014b06fead1f60686980468
parentb84660a888f8c6ac5410f7571ee40b120873dc06 (diff)
downloadglibc-7f3e75f87a93265e5a9feb1ba320f4b19f29cd67.tar
glibc-7f3e75f87a93265e5a9feb1ba320f4b19f29cd67.tar.gz
glibc-7f3e75f87a93265e5a9feb1ba320f4b19f29cd67.tar.bz2
glibc-7f3e75f87a93265e5a9feb1ba320f4b19f29cd67.zip
Remove dead variable in generic strcpy.
-rw-r--r--ChangeLog2
-rw-r--r--string/strcpy.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 23f29a2da3..83d439b7bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2013-02-08 Roland McGrath <roland@hack.frob.com>
+ * string/strcpy.c: Removed unused variable.
+
* Makeconfig (+sysdep-includes): Define with := rather than =.
Use an existing include/ subdir of each sysdeps dir before it.
diff --git a/string/strcpy.c b/string/strcpy.c
index 9b713dcaa1..64e030d8d2 100644
--- a/string/strcpy.c
+++ b/string/strcpy.c
@@ -30,7 +30,6 @@ strcpy (dest, src)
char c;
char *__unbounded s = (char *__unbounded) src;
const ptrdiff_t off = dest - s - 1;
- size_t n;
do
{
@@ -39,8 +38,6 @@ strcpy (dest, src)
}
while (c != '\0');
- n = s - src;
-
return dest;
}
libc_hidden_builtin_def (strcpy)