diff options
| author | David Lamparter <equinox@diac24.net> | 2019-05-12 21:07:45 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2019-06-03 16:44:05 +0200 |
| commit | 86bfbddf6ed922a755c29f23ffcef00240563a20 (patch) | |
| tree | a763144efdbada1bcf59875fdf9d809d28f74bdf /lib/printf/printf-pos.c | |
| parent | ea0b6afe2b775d13270e0942ddcf55012a6ee6d1 (diff) | |
lib/printf: cut down to size
remove various FreeBSD specific bits, as well as the entirety of locale
support.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/printf/printf-pos.c')
| -rw-r--r-- | lib/printf/printf-pos.c | 8 |
1 files changed, 1 insertions, 7 deletions
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 <sys/cdefs.h> -__FBSDID("$FreeBSD$"); /* * This is the code responsible for handling positional arguments * (%m$ and %m$.n$) for vfprintf() and vfwprintf(). */ -#include "namespace.h" #include <sys/types.h> #include <limits.h> @@ -55,7 +50,6 @@ __FBSDID("$FreeBSD$"); #include <string.h> #include <wchar.h> -#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; |
