X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=common%2Fmain.c;h=79ad2912a751c6097e524dca9b7224990f30fb96;hb=7f9f4347cf325c63a39fe30910f3fb211ae2cc15;hp=a17b60b3aa92cecc9b4bbcaf78c83a84af8d7a8f;hpb=7ea8325b41e02bf0a84ef3eafa686730886977a8;p=oweals%2Fu-boot.git diff --git a/common/main.c b/common/main.c index a17b60b3aa..79ad2912a7 100644 --- a/common/main.c +++ b/common/main.c @@ -509,7 +509,7 @@ void reset_cmd_timeout(void) */ #define putnstr(str,n) do { \ - printf ("%.*s", n, str); \ + printf ("%.*s", (int)n, str); \ } while (0) #define CTL_CH(c) ((c) - 'a' + 1) @@ -940,12 +940,6 @@ int readline_into_buffer (const char *const prompt, char * buffer) int rc; static int initted = 0; - if (!initted) { - hist_init(); - initted = 1; - } - - /* * History uses a global array which is not * writable until after relocation to RAM.