Fix compilation issue

This commit is contained in:
vdutta 2021-10-29 17:16:39 +05:30
parent be6a004224
commit 0364f143b9
2 changed files with 3 additions and 3 deletions

4
cwmp.c
View file

@ -100,10 +100,8 @@ end:
int get_firewall_restart_state(char **state)
{
const char *param = "cwmp.cpe.firewall_restart";
cwmp_uci_reinit();
return uci_get_state_value(param, state);
return uci_get_state_value(UCI_CPE_FIREWALL_RESTART_STATE, state);
}
// wait till firewall restart is not complete or 5 sec, whichever is less

View file

@ -59,6 +59,8 @@
#define LW_NOTIFICATION_PORT "cwmp.lwn.port"
#define UCI_DHCP_ACS_URL "cwmp.acs.dhcp_url"
#define UCI_CPE_FIREWALL_RESTART_STATE "cwmp.cpe.firewall_restart"
#define UCI_CONFIG_DIR "/etc/config/"
#define LIB_DB_CONFIG "/lib/db/config"
#define ETC_DB_CONFIG "/etc/board-db/config"