From a7c684a235e60a2d30e75f59e2b11d4c50088090 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 9 Aug 2005 01:27:20 +0000 Subject: * argp/argp-help.c: Use _IO_vasprintf instead of vasprintf. * include/stdio.h: Add libc_hidden_proto for __vfprintf_chk. * debug/vfprintf_chk.c: Add libc_hidden_def. --- ChangeLog | 6 ++++++ argp/argp-help.c | 7 ++++--- include/stdio.h | 1 + 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e4424044e3..119cc8f43f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-08-08 Ulrich Drepper + + * argp/argp-help.c: Use _IO_vasprintf instead of vasprintf. + * include/stdio.h: Add libc_hidden_proto for __vfprintf_chk. + * debug/vfprintf_chk.c: Add libc_hidden_def. + 2005-08-08 Roland McGrath * argp/argp-help.c (__argp_error): __asprintf -> vasprintf. diff --git a/argp/argp-help.c b/argp/argp-help.c index abd59c12f9..4bc4d07b15 100644 --- a/argp/argp-help.c +++ b/argp/argp-help.c @@ -48,7 +48,8 @@ char *alloca (); #include #include #include -#ifdef USE_IN_LIBIO +#ifdef _LIBC +# include <../libio/libioP.h> # include #endif @@ -1766,7 +1767,7 @@ __argp_error (const struct argp_state *state, const char *fmt, ...) #ifdef _LIBC char *buf; - if (vasprintf (&buf, fmt, ap) < 0) + if (_IO_vasprintf (&buf, fmt, ap) < 0) buf = NULL; __fxprintf (stream, "%s: %s\n", @@ -1836,7 +1837,7 @@ __argp_failure (const struct argp_state *state, int status, int errnum, #ifdef _LIBC char *buf; - if (vasprintf (&buf, fmt, ap) < 0) + if (_IO_vasprintf (&buf, fmt, ap) < 0) buf = NULL; __fxprintf (stream, ": %s", buf); diff --git a/include/stdio.h b/include/stdio.h index 9220db5b80..e040380d79 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -128,6 +128,7 @@ libc_hidden_proto (open_memstream) libc_hidden_proto (__libc_fatal) libc_hidden_proto (__vsprintf_chk) libc_hidden_proto (__vsnprintf_chk) +libc_hidden_proto (__vfprintf_chk) # if !defined NOT_IN_libc && defined SHARED && defined DO_VERSIONING \ && defined HAVE_VISIBILITY_ATTRIBUTE && !defined HAVE_BROKEN_ALIAS_ATTRIBUTE\ -- cgit 1.4.1