From 567ad26afc79149f1d70ec41f5ee867c72c20d57 Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Tue, 24 May 2022 15:41:49 +0200 Subject: stdio: add __dprintf_chk --- libgcompat/stdio.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/libgcompat/stdio.c b/libgcompat/stdio.c index 0ff5feb..d36a118 100644 --- a/libgcompat/stdio.c +++ b/libgcompat/stdio.c @@ -234,3 +234,16 @@ char *tmpnam_r(char *s) return tmpnam(s); } + +int +__dprintf_chk (int d, int flags, const char *format, ...) +{ + va_list arg; + int done; + + va_start (arg, format); + done = vdprintf (d, format, arg); + va_end (arg); + + return done; +} -- cgit v1.2.3-70-g09d2 From b2f16c6ccc7a23e374089be19e79369bc2942274 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 25 May 2022 04:24:58 +0000 Subject: stdio: Fix style for __dprintf_chk --- libgcompat/stdio.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libgcompat/stdio.c b/libgcompat/stdio.c index d36a118..f0b248a 100644 --- a/libgcompat/stdio.c +++ b/libgcompat/stdio.c @@ -238,12 +238,12 @@ char *tmpnam_r(char *s) int __dprintf_chk (int d, int flags, const char *format, ...) { - va_list arg; - int done; + va_list arg; + int done; - va_start (arg, format); - done = vdprintf (d, format, arg); - va_end (arg); + va_start(arg, format); + done = vdprintf(d, format, arg); + va_end(arg); - return done; + return done; } -- cgit v1.2.3-70-g09d2