diff options
author | Ulrich Drepper <drepper@gmail.com> | 2012-03-06 21:45:53 -0500 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2012-03-06 21:45:53 -0500 |
commit | f72ed77d712d9ad75ca3c7a7505cb2bb8d4cd0fc (patch) | |
tree | 6a4c1114639d13748c4d3d6091dc5e362cef312d | |
parent | a53b7a4e4b39d90f5964841c63492cf233aa17b8 (diff) | |
download | glibc-f72ed77d712d9ad75ca3c7a7505cb2bb8d4cd0fc.tar.gz glibc-f72ed77d712d9ad75ca3c7a7505cb2bb8d4cd0fc.tar.xz glibc-f72ed77d712d9ad75ca3c7a7505cb2bb8d4cd0fc.zip |
Formatting fixes
-rw-r--r-- | ChangeLog | 11 | ||||
-rw-r--r-- | stdio-common/vfprintf.c | 26 |
2 files changed, 21 insertions, 16 deletions
diff --git a/ChangeLog b/ChangeLog index 3c640dd8f2..520d3ade7e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-03-06 Ulrich Drepper <drepper@gmail.com> + + * stdio-common/vfprintf.c: Fix formatting. Missing copyright update. + 2012-03-06 Marek Polacek <polacek@redhat.com> [BZ #13726] @@ -12,9 +16,10 @@ (set_obp_int): New function. (get_obp_int): New function. (__get_clockfreq_via_dev_openprom): Likewise. - * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P): Avoid - unused variable warnings on 'val' and use builtin_expect. - (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with builtin_expect. + * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P): + Avoid unused variable warnings on 'val' and use builtin_expect. + (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with + __builtin_expect. (INLINE_CLONE_SYSCALL): Likewise. 2012-03-05 David S. Miller <davem@davemloft.net> diff --git a/stdio-common/vfprintf.c b/stdio-common/vfprintf.c index 85d19005d2..e454927bfd 100644 --- a/stdio-common/vfprintf.c +++ b/stdio-common/vfprintf.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2008, 2009, 2010, 2011 Free Software Foundation, Inc. +/* Copyright (C) 1991-2011, 2012 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -1706,28 +1706,28 @@ do_positional: nargs = MAX (nargs, max_ref_arg); /* Calculate total size needed to represent a single argument across all three argument-related arrays. */ - bytes_per_arg = sizeof (*args_value) + sizeof (*args_size) - + sizeof (*args_type); + bytes_per_arg = (sizeof (*args_value) + sizeof (*args_size) + + sizeof (*args_type)); /* Check for potential integer overflow. */ if (__builtin_expect (nargs > SIZE_MAX / bytes_per_arg, 0)) { - __set_errno (ERANGE); - done = -1; - goto all_done; + __set_errno (ERANGE); + done = -1; + goto all_done; } /* Allocate memory for all three argument arrays. */ if (__libc_use_alloca (nargs * bytes_per_arg)) - args_value = alloca (nargs * bytes_per_arg); + args_value = alloca (nargs * bytes_per_arg); else { - args_value = args_malloced = malloc (nargs * bytes_per_arg); - if (args_value == NULL) - { - done = -1; - goto all_done; - } + args_value = args_malloced = malloc (nargs * bytes_per_arg); + if (args_value == NULL) + { + done = -1; + goto all_done; + } } /* Set up the remaining two arrays to each point past the end of the |