From 0364f143b98d1c031a22b0bb8741bfa48e20a56e Mon Sep 17 00:00:00 2001 From: vdutta Date: Fri, 29 Oct 2021 17:16:39 +0530 Subject: [PATCH] Fix compilation issue --- cwmp.c | 4 +--- inc/cwmp_uci.h | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cwmp.c b/cwmp.c index fd09550..8f4ca92 100644 --- a/cwmp.c +++ b/cwmp.c @@ -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 diff --git a/inc/cwmp_uci.h b/inc/cwmp_uci.h index aebd8ba..9255778 100644 --- a/inc/cwmp_uci.h +++ b/inc/cwmp_uci.h @@ -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"