diff options
author | Paul Smith <psmith@gnu.org> | 2013-11-23 22:23:52 -0500 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2013-11-23 22:23:52 -0500 |
commit | 175653a9c22fd3bc8a354401db43a5e93099f079 (patch) | |
tree | d6acd1705fe25873b43fa7d16b736e44b6191ab7 /job.h | |
parent | fdffa8c8e0cb033ce00ba6968b269ac55320ee17 (diff) | |
download | make-175653a9c22fd3bc8a354401db43a5e93099f079.tar.gz |
[SV 40361] Don't use vsnprintf(), which is an ISO C99 function.
* output.c (error, fatal, message): Take an extra argument specifying
how many bytes are used by the formatted arguments.
(get_buffer): New function that allocates the requested buffer size.
Remove msc_vsnprintf(), vfmtconcat(), and fmtconcat() as unneeded.
* makeint.h: Declare various helper macros for generating output.
* *.c: Change all error(), fatal(), message() calls to use the macros,
or pass the extra length argument directly.
Diffstat (limited to 'job.h')
-rw-r--r-- | job.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -39,8 +39,8 @@ this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef NO_OUTPUT_SYNC # define RECORD_SYNC_MUTEX(m) \ - error (NILF, \ - _("-O[TYPE] (--output-sync[=TYPE]) is not configured for this build.")); + O (error, NILF, \ + _("-O[TYPE] (--output-sync[=TYPE]) is not configured for this build.")); #else # ifdef WINDOWS32 /* For emulations in w32/compat/posixfcn.c. */ |