From f5a90eb9c681eda0d8fc066ba41f5620edcc318a Mon Sep 17 00:00:00 2001 From: Bryce Denney Date: Fri, 22 Jun 2001 13:37:08 +0000 Subject: [PATCH] - VC++ kept me honest about return values... --- bochs/gui/siminterface.cc | 5 +++-- bochs/gui/siminterface.h | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bochs/gui/siminterface.cc b/bochs/gui/siminterface.cc index fc20babdc..d4dcc209a 100644 --- a/bochs/gui/siminterface.cc +++ b/bochs/gui/siminterface.cc @@ -1,6 +1,6 @@ /* * gui/siminterface.cc - * $Id: siminterface.cc,v 1.30 2001-06-21 21:24:05 bdenney Exp $ + * $Id: siminterface.cc,v 1.31 2001-06-22 13:37:08 bdenney Exp $ * * Defines the actual link between bx_simulator_interface_c methods * and the simulator. This file includes bochs.h because it needs @@ -129,6 +129,7 @@ bx_real_sim_c::register_param (bx_id id, bx_param_c *it) BX_ASSERT (id >= BXP_NULL && id < BXP_THIS_IS_THE_LAST); int index = (int)id - BXP_NULL; this->param_registry[index] = it; + return 0; } int @@ -155,7 +156,7 @@ void bx_real_sim_c::set_log_action (int mod, int level, int action) { logfunc_t *logfn = io->get_logfn (mod); - return logfn->setonoff (level, action); + logfn->setonoff (level, action); } char * diff --git a/bochs/gui/siminterface.h b/bochs/gui/siminterface.h index cff8df7a5..e2da47be3 100644 --- a/bochs/gui/siminterface.h +++ b/bochs/gui/siminterface.h @@ -1,6 +1,6 @@ /* * gui/siminterface.h - * $Id: siminterface.h,v 1.21 2001-06-21 21:24:05 bdenney Exp $ + * $Id: siminterface.h,v 1.22 2001-06-22 13:37:08 bdenney Exp $ * * Interface to the simulator, currently only used by control.cc. * The base class bx_simulator_interface_c, contains only virtual functions @@ -143,7 +143,7 @@ public: int getint () {return -1;} #if BX_UI_TEXT virtual void text_print (FILE *fp) {} - virtual int text_ask (FILE *fpin, FILE *fpout) {} + virtual int text_ask (FILE *fpin, FILE *fpout) {return -1;} #endif };