X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=libiberty%2F_doprnt.c;h=a739f4304f9568546fceb745c674f2f6d2005f74;hb=refs%2Fheads%2Fconcurrent-displaced-stepping-2020-04-01;hp=804b93977808cee9c27b620c99b01a88e43673d3;hpb=9334f9c6cd576128ec4fc891b5fcf267a7fca7fb;p=deliverable%2Fbinutils-gdb.git diff --git a/libiberty/_doprnt.c b/libiberty/_doprnt.c index 804b939778..a739f4304f 100644 --- a/libiberty/_doprnt.c +++ b/libiberty/_doprnt.c @@ -1,5 +1,5 @@ /* Provide a version of _doprnt in terms of fprintf. - Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 1998-2020 Free Software Foundation, Inc. Contributed by Kaveh Ghazi (ghazi@caip.rutgers.edu) 3/29/98 This program is free software; you can redistribute it and/or modify it @@ -14,7 +14,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software -Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ #include "config.h" #include "ansidecl.h" @@ -222,11 +222,11 @@ static int checkit (const char* format, ...) { int result; - VA_OPEN (args, format); - VA_FIXEDARG (args, char *, format); + va_list args; + va_start (args, format); result = _doprnt (format, args, stdout); - VA_CLOSE (args); + va_end (args); return result; }