OCT 1. 修正代码规范检查问题
This commit is contained in:
parent
f20a32c4ae
commit
8f8a5a4b17
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue