From 86bfbddf6ed922a755c29f23ffcef00240563a20 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sun, 12 May 2019 21:07:45 +0200 Subject: lib/printf: cut down to size remove various FreeBSD specific bits, as well as the entirety of locale support. Signed-off-by: David Lamparter --- lib/printf/printf-pos.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'lib/printf/printf-pos.c') diff --git a/lib/printf/printf-pos.c b/lib/printf/printf-pos.c index 40f91e8af7..f4104c52bf 100644 --- a/lib/printf/printf-pos.c +++ b/lib/printf/printf-pos.c @@ -32,18 +32,13 @@ * SUCH DAMAGE. */ -#if defined(LIBC_SCCS) && !defined(lint) -static char sccsid[] = "@(#)vfprintf.c 8.1 (Berkeley) 6/4/93"; -#endif /* LIBC_SCCS and not lint */ #include -__FBSDID("$FreeBSD$"); /* * This is the code responsible for handling positional arguments * (%m$ and %m$.n$) for vfprintf() and vfwprintf(). */ -#include "namespace.h" #include #include @@ -55,7 +50,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include "un-namespace.h" #include "printflocal.h" #ifdef NL_ARGMAX @@ -646,7 +640,7 @@ __grow_type_table(struct typetable *types) u_int n, newsize; /* Detect overflow */ - if (types->nextarg > NL_ARGMAX) + if (types->nextarg > MAX_POSARG) return (-1); newsize = oldsize * 2; -- cgit v1.2.3