This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

iprintf reentrant fix


Hello. Here is a small fix for iprintf.

--
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.
Index: iprintf.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/stdio/iprintf.c,v
retrieving revision 1.4
diff -c -r1.4 iprintf.c
*** iprintf.c	23 Apr 2004 20:01:55 -0000	1.4
--- iprintf.c	4 May 2004 12:53:20 -0000
***************
*** 96,103 ****
  _iprintf_r(struct _reent *ptr, _CONST char *fmt, ...)
  #else
  int
! _iprintf_r(data, fmt, va_alist)
!            char *data;
             char *fmt;
             va_dcl
  #endif
--- 96,103 ----
  _iprintf_r(struct _reent *ptr, _CONST char *fmt, ...)
  #else
  int
! _iprintf_r(ptr, fmt, va_alist)
!            struct _reent *ptr;
             char *fmt;
             va_dcl
  #endif
***************
*** 111,117 ****
  #else
    va_start (ap);
  #endif
!   ret = vfiprintf (_stdout_r (ptr), fmt, ap);
    va_end (ap);
    return ret;
  }
--- 111,118 ----
  #else
    va_start (ap);
  #endif
!   ret = _vfiprintf_r (ptr, _stdout_r (ptr), fmt, ap);
    va_end (ap);
    return ret;
  }
+ 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]