]> sourceware.org Git - glibc.git/commitdiff
Remove dead variable in generic strcpy.
authorRoland McGrath <roland@hack.frob.com>
Fri, 8 Feb 2013 18:46:32 +0000 (10:46 -0800)
committerRoland McGrath <roland@hack.frob.com>
Fri, 8 Feb 2013 18:46:32 +0000 (10:46 -0800)
ChangeLog
string/strcpy.c

index 23f29a2da3ce03f8ecaa02615336501e45d65b8e..83d439b7bf6dd86b8a66d635ce8093f8e5425548 100644 (file)
--- 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.
 
index 9b713dcaa1ddf3fa57d7031a957b27464b5ced2b..64e030d8d2abf4f411100b6f7c31d5529ea20de9 100644 (file)
@@ -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)
This page took 0.11134 seconds and 5 git commands to generate.