Correct missing return value.

This commit is contained in:
counterpoint
2015-10-02 16:19:59 +01:00
parent 4f316419c5
commit e38ea9d07d
4 changed files with 4 additions and 4 deletions

View File

@ -1614,7 +1614,7 @@ ROUTER_INSTANCE *router = slave->router;
* because the "data" parameter will not contain meaningful data, * because the "data" parameter will not contain meaningful data,
* so we have no choice but to stop here. * so we have no choice but to stop here.
*/ */
return; return 0;
} }
if (reason == DCB_REASON_DRAINED) if (reason == DCB_REASON_DRAINED)
{ {

View File

@ -1017,7 +1017,7 @@ static int handle_state_switch(DCB* dcb,DCB_REASON reason, void * routersession)
* We cannot handle a DCB that does not have a router session, * We cannot handle a DCB that does not have a router session,
* except in the case where error processing is invoked. * except in the case where error processing is invoked.
*/ */
return; return 0;
} }
switch(reason) switch(reason)
{ {

View File

@ -5309,7 +5309,7 @@ static int router_handle_state_switch(
* because the "data" parameter will not contain meaningful data, * because the "data" parameter will not contain meaningful data,
* so we have no choice but to stop here. * so we have no choice but to stop here.
*/ */
return; return 0;
} }
bref = (backend_ref_t *)data; bref = (backend_ref_t *)data;
CHK_BACKEND_REF(bref); CHK_BACKEND_REF(bref);

View File

@ -4412,7 +4412,7 @@ router_handle_state_switch(
* because the "data" parameter will not contain meaningful data, * because the "data" parameter will not contain meaningful data,
* so we have no choice but to stop here. * so we have no choice but to stop here.
*/ */
return; return 0;
} }
bref = (backend_ref_t *) data; bref = (backend_ref_t *) data;
CHK_BACKEND_REF(bref); CHK_BACKEND_REF(bref);