X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/f7e3ed82874bfd8951c90536bd7185d599d6dbf8..7dfa1b021e67a062961fdd87c24c1c7a582a5bb1:/armsrc/printf.c diff --git a/armsrc/printf.c b/armsrc/printf.c index 49537c64..eca676a2 100644 --- a/armsrc/printf.c +++ b/armsrc/printf.c @@ -33,23 +33,19 @@ * * @(#)subr_prf.c 8.3 (Berkeley) 1/21/94 */ - -#include -#include #include "printf.h" -#include "util.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 */ @@ -430,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);