--- mon/src/mon.cpp 2004/02/12 17:18:03 1.25 +++ mon/src/mon.cpp 2007/01/21 17:32:05 1.26 @@ -258,8 +258,6 @@ void mon_write_word(uintptr adr, uint32 static void read_line(char *prompt) { #ifdef HAVE_LIBREADLINE - static char *line_read = NULL; - if (input) free(input); input = readline(prompt); @@ -815,7 +813,7 @@ static void set_var() else { var_map::const_iterator v = vars.begin(), end = vars.end(); for (v=vars.begin(); v!=end; ++v) - fprintf(monout, "%s = %08x\n", v->first.c_str(), v->second); + fprintf(monout, "%s = %08lx\n", v->first.c_str(), v->second); } } else if (mon_token == T_NAME) { @@ -1189,7 +1187,7 @@ void mon(int argc, char **argv) while (!done) { if (interactive) { char prompt[16]; - sprintf(prompt, "[%0*lx]-> ", 2 * sizeof(mon_dot_address), mon_dot_address); + sprintf(prompt, "[%0*lx]-> ", int(2 * sizeof(mon_dot_address)), mon_dot_address); read_line(prompt); if (!input) { done = true;