Fixed erly return, reformatted.

FossilOrigin-Name: cefae9fffdc18144baab98035110d46e5e647d7169168f28d51ea39ce2020ed5
This commit is contained in:
7u83@mail.ru 2016-03-12 21:32:00 +00:00
parent 97ce628f4b
commit 9ed5b74a35
1 changed files with 26 additions and 20 deletions

View File

@ -24,7 +24,8 @@
#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) {
@ -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);
if (!i) {
if (!a->mand){
cw_log(LOG_ERR,"Can't put mandatory element WTP_REBOOT_STATISTICS");
if (a->mand) {
cw_log(LOG_ERR,
"Can't put mandatory element WTP_REBOOT_STATISTICS");
printf("retu 0 err\n");
return 0;
}
return 0;
}
mbag_t rs = (mbag_t) i->data;