]> sourceware.org Git - newlib-cygwin.git/commitdiff
* libc/stdio/vfprintf.c (_VFPRINTF_R): Remove unnecessary comparison.
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 29 Oct 2014 11:06:42 +0000 (11:06 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 29 Oct 2014 11:06:42 +0000 (11:06 +0000)
newlib/ChangeLog
newlib/libc/stdio/vfprintf.c

index 6e542568d02e9656cd6eb16314a951c587641e52..0b134ea994738b11e8e52e1b1d94c928d33260fc 100644 (file)
@@ -1,3 +1,12 @@
+2014-10-29  Terry Guo  <terry.guo@arm.com>
+
+       * libc/stdio/vfprintf.c (_VFPRINTF_R): Remove unnecessary comparison.
+
+2014-10-27  Corinna Vinschen  <vinschen@redhat.com>
+
+       * libc/stdlib/__call_atexit.c (__deregister_exitproc): Add Cygwin-only
+       function to deregister functions from the atexit function chain.
+
 2014-10-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
 
        * libc/include/sys/unistd.h (sethostname): Declare if
index dd9c22a6da3b134a004c4b70298615cf631af148..5e6c61ca42f158c7b8ec12d575665ce4d9d3be1e 100644 (file)
@@ -1521,11 +1521,9 @@ string:
                                 */
                                char *p = memchr (cp, 0, prec);
 
-                               if (p != NULL) {
+                               if (p != NULL)
                                        size = p - cp;
-                                       if (size > prec)
-                                               size = prec;
-                               } else
+                               else
                                        size = prec;
                        } else
                                size = strlen (cp);
This page took 0.054517 seconds and 5 git commands to generate.