From 0d2c2c274bb925843dc56f0d051c7f4c33d73646 Mon Sep 17 00:00:00 2001 From: optixx Date: Thu, 17 Sep 2009 20:46:00 +0200 Subject: [PATCH] fix minor compile errors --- avr/usbload/debug.c | 7 ++++--- avr/usbload/info.c | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/avr/usbload/debug.c b/avr/usbload/debug.c index 9a25ad7..ccd26f3 100644 --- a/avr/usbload/debug.c +++ b/avr/usbload/debug.c @@ -59,10 +59,11 @@ void debug_P(int level, PGM_P format, ...) { va_list args; if (!(debug_level & level)) return; - strlcpy_P(buffer_debug,format,FORMAT_BUFFER_LEN); + strlcpy_P((char*)buffer_debug,format,FORMAT_BUFFER_LEN); va_start(args, format); - vprintf(buffer_debug, args); + vprintf((char*)buffer_debug, args); va_end(args); #endif } -#endif \ No newline at end of file +#endif + diff --git a/avr/usbload/info.c b/avr/usbload/info.c index bcfc7b8..63a97ec 100644 --- a/avr/usbload/info.c +++ b/avr/usbload/info.c @@ -63,10 +63,10 @@ void info_P(PGM_P format, ...) { #ifdef NO_INFO #else - strlcpy_P(buffer_info,format,FORMAT_BUFFER_LEN); + strlcpy_P((char*)buffer_info,format,FORMAT_BUFFER_LEN); va_list args; va_start(args, format); - vprintf(buffer_info, args); + vprintf((char*)buffer_info, args); va_end(args); #endif }