Index: ossp-pkg/rc/rc_config.c RCS File: /v/ossp/cvs/ossp-pkg/rc/rc_config.c,v rcsdiff -q -kk '-r1.20' '-r1.21' -u '/v/ossp/cvs/ossp-pkg/rc/rc_config.c,v' 2>/dev/null --- rc_config.c 2002/07/01 15:03:33 1.20 +++ rc_config.c 2002/07/05 13:27:22 1.21 @@ -38,6 +38,27 @@ /*************************************** +* configNew(void) * +* Construct a configuration * +***************************************/ +rc_return_t configNew(void) +{ + ex_t Except; + + if (m_nLocks == 0) { /* If we don't have one yet */ + try { /* then construct a new one */ + clioptNew(); /* Member cliopt instance */ + } + catch(Except) { + rethrow; + } + } + m_nLocks++; /* FIXME not threadsafe */ + + return(RC_THROW(RC_OK)); +} + +/*************************************** * configInfo(void) * * Print the configuration information * ***************************************/ @@ -73,27 +94,6 @@ return(RC_THROW(RC_OK)); } - -/*************************************** -* configNew(void) * -* Construct a configuration * -***************************************/ -rc_return_t configNew(void) -{ - ex_t Except; - - if (m_nLocks == 0) { /* If we don't have one yet */ - try { /* then construct a new one */ - clioptNew(); /* Member cliopt instance */ - } - catch(Except) { - rethrow; - } - } - m_nLocks++; /* FIXME not threadsafe */ - - return(RC_THROW(RC_OK)); -} /*************************************** * configGetXXX(rc_opt_t) *