Mon Feb 21 11:43:50 2000 Jeff Johnston <jjohnstn@cygnus.com>
* libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT
        call prior to calling _VFPRINTF_R so reentrant data area is set.
        (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
			
			
This commit is contained in:
		| @@ -1,3 +1,9 @@ | |||||||
|  | Mon Feb 21 11:43:50 2000  Jeff Johnston <jjohnstn@cygnus.com> | ||||||
|  |  | ||||||
|  | 	* libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT | ||||||
|  | 	call prior to calling _VFPRINTF_R so reentrant data area is set. | ||||||
|  | 	(_VFPRINTF_R): Removed now extraneous CHECK_INIT call. | ||||||
|  |  | ||||||
| Thu Feb 17 01:42:50 2000  J"orn Rennecke <amylaar@cygnus.co.uk> | Thu Feb 17 01:42:50 2000  J"orn Rennecke <amylaar@cygnus.co.uk> | ||||||
|  |  | ||||||
| 	* libc/stdio/vfscanf.c (limits.h): #include. | 	* libc/stdio/vfscanf.c (limits.h): #include. | ||||||
|   | |||||||
| @@ -276,6 +276,7 @@ _DEFUN (VFPRINTF, (fp, fmt0, ap), | |||||||
| 	_CONST char *fmt0 _AND | 	_CONST char *fmt0 _AND | ||||||
| 	va_list ap) | 	va_list ap) | ||||||
| { | { | ||||||
|  |   CHECK_INIT (fp); | ||||||
|   return _VFPRINTF_R (fp->_data, fp, fmt0, ap); |   return _VFPRINTF_R (fp->_data, fp, fmt0, ap); | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -396,8 +397,6 @@ _DEFUN (_VFPRINTF_R, (data, fp, fmt0, ap), | |||||||
| 	    (u_long)va_arg(ap, u_int)) | 	    (u_long)va_arg(ap, u_int)) | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| 	CHECK_INIT (fp); |  | ||||||
|  |  | ||||||
| 	/* sorry, fprintf(read_only_file, "") returns EOF, not 0 */ | 	/* sorry, fprintf(read_only_file, "") returns EOF, not 0 */ | ||||||
| 	if (cantwrite(fp)) | 	if (cantwrite(fp)) | ||||||
| 		return (EOF); | 		return (EOF); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user