From 15d4bf3e7822a2b3863f15a2f0d7c5b9f5f76911 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 21 Jan 2017 10:28:14 +0100 Subject: [PATCH] CHG: moved to header file --- armsrc/printf.c | 6 ------ armsrc/printf.h | 3 +++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/armsrc/printf.c b/armsrc/printf.c index d5e61798..b5d0e449 100644 --- a/armsrc/printf.c +++ b/armsrc/printf.c @@ -33,12 +33,7 @@ * * @(#)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; @@ -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); diff --git a/armsrc/printf.h b/armsrc/printf.h index ff2b6b68..03f4688d 100644 --- a/armsrc/printf.h +++ b/armsrc/printf.h @@ -12,6 +12,9 @@ #define __PRINTF_H #include +#include +#include "util.h" +#include "string.h" int kvsprintf(const char *format, void *arg, int radix, va_list ap) __attribute__ ((format (printf, 1, 0))); int vsprintf(char *str, const char *format, va_list ap) __attribute__ ((format (printf, 2, 0))); -- 2.39.5