Ignore:
Timestamp:
07/05/11 10:24:02 (13 years ago)
Author:
tbretz
Message:
Changed SetConfiguration to EvalConfiguration and its return value from bool to int; Main now returns with its return value if it is positive or zero.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/fscctrl.cc

    r11251 r11253  
    518518    }
    519519
    520     bool SetConfiguration(const Configuration &conf)
     520    int EvalConfiguration(const Configuration &conf)
    521521    {
    522522        SetEndpoint(conf.Get<string>("addr"));
     
    524524        fFSC.SetVerbose(!conf.Get<bool>("quiet"));
    525525
    526         return true;
     526        return -1;
    527527    }
    528528};
     
    557557    // Start io_service.run to only use the commandHandler command detaching
    558558    StateMachineFSC<S, T> io_service(wout);
    559     if (!io_service.SetConfiguration(conf))
     559    if (!io_service.EvalConfiguration(conf))
    560560        return -1;
    561561
     
    581581
    582582    StateMachineFSC<S, R> io_service(wout);
    583     if (!io_service.SetConfiguration(conf))
     583    if (!io_service.EvalConfiguration(conf))
    584584        return -1;
    585585
Note: See TracChangeset for help on using the changeset viewer.