diff --git a/cmd-lcd.c b/cmd-lcd.c index 6348f85..6e4c8b8 100644 --- a/cmd-lcd.c +++ b/cmd-lcd.c @@ -115,7 +115,7 @@ int cmd_lcd(int argc, char **argv) for (x = 0; x < lcd_width(); x++) lcd_addpixel(rgb(i++, 0, 0)); } - else if (is_command(argc, argv, "tps")) { + else if (is_command(argc, argv, "tpd")) { static int step = 0; pixel_t *fb; int x, y; diff --git a/vsprintf.c b/vsprintf.c index 6d21faf..9b201d7 100644 --- a/vsprintf.c +++ b/vsprintf.c @@ -87,6 +87,11 @@ int strict_strtoul(const char *cp, unsigned int base, unsigned long *res) return -EINVAL; } +unsigned long strtoul(const char *cp, char **endp, unsigned int base) +{ + return simple_strtoul(cp, endp, base); +} + long simple_strtol(const char *cp,char **endp,unsigned int base) { if(*cp=='-') @@ -661,7 +666,7 @@ static int vsnprintf_internal(char *buf, size_t size, const char *fmt, } else if (qualifier == 'Z' || qualifier == 'z') { num = va_arg(args, size_t); } else if (qualifier == 't') { - num = va_arg(args, ptrdiff_t); + num = va_arg(args, void *); } else if (qualifier == 'h') { num = (unsigned short) va_arg(args, int); if (flags & SIGN)