Fixed erly return, reformatted.
FossilOrigin-Name: cefae9fffdc18144baab98035110d46e5e647d7169168f28d51ea39ce2020ed5
This commit is contained in:
parent
97ce628f4b
commit
9ed5b74a35
@ -24,7 +24,8 @@
|
|||||||
#include "cw.h"
|
#include "cw.h"
|
||||||
|
|
||||||
|
|
||||||
int cw_out_wtp_reboot_statistics(struct conn *conn, struct cw_action_out *a, uint8_t * dst)
|
int cw_out_wtp_reboot_statistics(struct conn *conn, struct cw_action_out *a,
|
||||||
|
uint8_t * dst)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!a->get) {
|
if (!a->get) {
|
||||||
@ -34,11 +35,16 @@ int cw_out_wtp_reboot_statistics(struct conn *conn, struct cw_action_out *a, uin
|
|||||||
|
|
||||||
|
|
||||||
struct mbag_item *i = a->get(conn, a);
|
struct mbag_item *i = a->get(conn, a);
|
||||||
|
|
||||||
|
|
||||||
if (!i) {
|
if (!i) {
|
||||||
if (!a->mand){
|
if (a->mand) {
|
||||||
cw_log(LOG_ERR,"Can't put mandatory element WTP_REBOOT_STATISTICS");
|
cw_log(LOG_ERR,
|
||||||
|
"Can't put mandatory element WTP_REBOOT_STATISTICS");
|
||||||
|
printf("retu 0 err\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
mbag_t rs = (mbag_t) i->data;
|
mbag_t rs = (mbag_t) i->data;
|
||||||
|
Loading…
Reference in New Issue
Block a user