OCT 1. 修正高版本编译器报错问题

This commit is contained in:
huangxin 2023-02-07 10:43:11 +08:00
parent 309c42347f
commit 551323c1a5
2 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,8 @@
***************************************************************************/ ***************************************************************************/
//This file defines all structures and constants //This file defines all structures and constants
//for both DHCP and DNS Servers //for both DHCP and DNS Servers
#include <string>
#define MAX_SERVERS 125 #define MAX_SERVERS 125
#define MAX_DHCP_RANGES 125 #define MAX_DHCP_RANGES 125
#define MAX_DNS_RANGES 32 #define MAX_DNS_RANGES 32

View File

@ -52,7 +52,9 @@ static void lwip_init_env() {
cJSON *create_app_process_status(int isStart) { cJSON *create_app_process_status(int isStart) {
cJSON *pRspMsg = cJSON_CreateObject(); cJSON *pRspMsg = cJSON_CreateObject();
#ifdef USED_USER_VNI
cJSON_AddNumberToObject(pRspMsg, "vni", cfg_get_user_vni_id()); cJSON_AddNumberToObject(pRspMsg, "vni", cfg_get_user_vni_id());
#endif
cJSON_AddStringToObject(pRspMsg, "process", isStart ? "setup" : "exit"); cJSON_AddStringToObject(pRspMsg, "process", isStart ? "setup" : "exit");
return pRspMsg; return pRspMsg;
} }