X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/9ab7a6c75566a2d06e56a8a97173c6382a3c5b3d..f24edfec54295aac701b8240e39d77646ddd9bef:/armsrc/printf.c diff --git a/armsrc/printf.c b/armsrc/printf.c index d5e61798..eca676a2 100644 --- a/armsrc/printf.c +++ b/armsrc/printf.c @@ -33,24 +33,19 @@ * * @(#)subr_prf.c 8.3 (Berkeley) 1/21/94 */ - -#include -#include #include "printf.h" -#include "util.h" -#include "string.h" - -typedef uint32_t uintmax_t; -typedef int32_t intmax_t; typedef unsigned char u_char; typedef unsigned int u_int; -typedef unsigned long u_long; -typedef unsigned short u_short; typedef unsigned long long u_quad_t; typedef long long quad_t; - +typedef unsigned long u_long; +typedef unsigned short u_short; typedef int ssize_t; +/* +typedef uint32_t uintmax_t; +typedef int32_t intmax_t; +*/ #define NBBY 8 /* number of bits in a byte */ @@ -431,7 +426,6 @@ sprintf(char *dest, const char *fmt, ...) /* http://www.pagetable.com/?p=298 */ int retval; va_list ap; - va_start(ap, fmt); retval = kvsprintf(fmt, dest, 10, ap); va_end(ap);