summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2008-12-10 02:32:06 +0000
committerdas <das@FreeBSD.org>2008-12-10 02:32:06 +0000
commitca2e42dd383363e05576fad5633704aab0c77c5d (patch)
treed76d3eb808d5412d7713a3ee007dbbb14b460f7f /lib/libc
parent7424137d3ce93d16fd9fc4f65c121198eca76d7e (diff)
downloadFreeBSD-src-ca2e42dd383363e05576fad5633704aab0c77c5d.zip
FreeBSD-src-ca2e42dd383363e05576fad5633704aab0c77c5d.tar.gz
Move the xprintf hook to where it belongs; it shouldn't be in the
middle of vfprintf's variable declarations.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdio/vfprintf.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c
index 3f98c63..cb70245 100644
--- a/lib/libc/stdio/vfprintf.c
+++ b/lib/libc/stdio/vfprintf.c
@@ -396,12 +396,6 @@ __vfprintf(FILE *fp, const char *fmt0, va_list ap)
char sign; /* sign prefix (' ', '+', '-', or \0) */
char thousands_sep; /* locale specific thousands separator */
const char *grouping; /* locale specific numeric grouping rules */
-
- if (__use_xprintf == 0 && getenv("USE_XPRINTF"))
- __use_xprintf = 1;
- if (__use_xprintf > 0)
- return (__xvprintf(fp, fmt0, ap));
-
#ifndef NO_FLOATING_POINT
/*
* We can decompose the printed representation of floating
@@ -568,6 +562,10 @@ __vfprintf(FILE *fp, const char *fmt0, va_list ap)
val = GETARG (int); \
}
+ if (__use_xprintf == 0 && getenv("USE_XPRINTF"))
+ __use_xprintf = 1;
+ if (__use_xprintf > 0)
+ return (__xvprintf(fp, fmt0, ap));
thousands_sep = '\0';
grouping = NULL;
OpenPOWER on IntegriCloud