clean up set callbacks and handlers
This commit is contained in:
parent
e856eb1b68
commit
b56f950c15
1 changed files with 5 additions and 5 deletions
10
opsb.c
10
opsb.c
|
@ -302,12 +302,12 @@ int opsb_cmd_ports (CmdParams* cmdparams)
|
|||
|
||||
int do_set_cb (CmdParams* cmdparams, SET_REASON reason)
|
||||
{
|
||||
if (reason == SET_LOAD) {
|
||||
return NS_SUCCESS;
|
||||
if( reason == SET_CHANGE )
|
||||
{
|
||||
opsb.confed = 1;
|
||||
DBAStoreConfigInt ("Confed", &opsb.confed);
|
||||
DelTimer("unconf");
|
||||
}
|
||||
opsb.confed = 1;
|
||||
DBAStoreConfigInt ("Confed", &opsb.confed);
|
||||
DelTimer("unconf");
|
||||
return NS_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue