OCT 1. 修正代码规范检查问题

This commit is contained in:
huangxin 2022-12-12 10:26:55 +08:00
parent f20a32c4ae
commit 8f8a5a4b17
1 changed files with 2 additions and 2 deletions

View File

@ -468,7 +468,7 @@ static int delete_dhcpd_rangeset(data19 *req, const char *pRequest) {
HASH_FIND_INT(delMap, &st_addr, delItem);
if (delItem == nullptr) {
hash_map *s = (struct hash_map *)malloc(sizeof(struct hash_map));
auto *s = (struct hash_map *)malloc(sizeof(struct hash_map));
s->key = st_addr;
s->value = en_addr;
HASH_ADD_INT(delMap, key, s);
@ -520,7 +520,7 @@ static int delete_dhcpd_rangeset(data19 *req, const char *pRequest) {
}
}
cfig.rangeCount = resCount;
cfig.rangeCount = (char)resCount;
const char *pStrPro = proto_create_new(pRspRoot, 200);
fp += sprintf(fp, "%s", pStrPro);