X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=shell%2Fmsh.c;h=b3bb06b28fb45df90430ad8dea2bf35550754c99;hb=2dd42799594c6197ca97ca3ec65ec73c81af0875;hp=08ca792fae793c253317eec518b079869ec1b0d5;hpb=c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4;p=oweals%2Fbusybox.git diff --git a/shell/msh.c b/shell/msh.c index 08ca792fa..b3bb06b28 100644 --- a/shell/msh.c +++ b/shell/msh.c @@ -819,7 +819,7 @@ static char *current_prompt; */ -extern int msh_main(int argc, char **argv) +int msh_main(int argc, char **argv) { REGISTER int f; REGISTER char *s; @@ -956,9 +956,9 @@ extern int msh_main(int argc, char **argv) interactive++; #ifndef CONFIG_FEATURE_SH_EXTRA_QUIET #ifdef MSHDEBUG - printf("\n\n" BB_BANNER " Built-in shell (msh with debug)\n"); + printf("\n\n%s Built-in shell (msh with debug)\n", BB_BANNER); #else - printf("\n\n" BB_BANNER " Built-in shell (msh)\n"); + printf("\n\n%s Built-in shell (msh)\n", BB_BANNER); #endif printf("Enter 'help' for a list of built-in commands.\n\n"); #endif @@ -1622,7 +1622,7 @@ static void initarea() brkaddr = malloc(AREASIZE); brktop = brkaddr + AREASIZE; - while ((int) sbrk(0) & ALIGN) + while ((long) sbrk(0) & ALIGN) sbrk(1); areabot = (struct region *) sbrk(REGSIZE);