rem: return(state->retval);
add: return state->retval;
context: int main(int argc, char *argv[]){  struct ecasound_state* state = &ecasound_state_global;  /* 1. setup signals and watchdog thread */  ecasound_setup_signals(state);  /* 2. parse command-line args */  COMMAND_LINE* cline = new COMMAND_LINE(argc, argv);  COMMAND_LINE* clineout = new COMMAND_LINE();  ecasound_parse_command_line(state, *cline, clineout);   delete cline; cline = 0;  /* 3. create console interface */  if (state->retval == 0) {#if defined(ECA_USE_NCURSES_H) || defined(ECA_USE_NCURSES_NCURSES_H) || defined(ECA_USE_CURSES_H)    if (state->quiet_mode != true &&	state->cerr_output_only_mode != true) {      state->console = new ECA_CURSES();      state->logger = new TEXTDEBUG();      ECA_LOGGER::attach_logger(state->logger);    }    else #endif      {	ostream* ostr = (state->cerr_output_only_mode == true) ? &cerr : &cout;	state->console = new ECA_PLAIN_TEXT(ostr);      }        if (state->quiet_mode != true) {      /* 4. print banner */      state->console->print_banner();    }    /* 5. set default debug levels */    ECA_LOGGER::instance().set_log_level(ECA_LOGGER::errors, true);    ECA_LOGGER::instance().set_log_level(ECA_LOGGER::info, true);    ECA_LOGGER::instance().set_log_level(ECA_LOGGER::subsystems, true);    ECA_LOGGER::instance().set_log_level(ECA_LOGGER::eiam_return_values, true);    ECA_LOGGER::instance().set_log_level(ECA_LOGGER::module_names, true);        /* 6. create eca objects */    ecasound_create_eca_objects(state, *clineout);    delete clineout; clineout = 0;    /* 7. start ecasound daemon */    if (state->retval == 0) {      if (state->daemon_mode == true) {	ecasound_launch_daemon(state);      }    }    /* 8. start processing */    if (state->retval == 0) {      ecasound_main_loop(state);    }  }  if (state->daemon_mode == true) {    /* wait until daemon thread has exited */    state->exit_request = 1;    pthread_join(*state->daemon_thread, NULL);  }  /* note: if we exist due to a signal, we never reach    *       the end of main() */  // cerr << endl << "ecasound: main() exiting..." << endl << endl;  return(state->retval);}