修复add_hos_info

This commit is contained in:
彭宣正
2021-04-06 13:47:47 +08:00
parent 88a38be092
commit 6bb183780c
2 changed files with 9 additions and 3 deletions

View File

@@ -8,7 +8,7 @@
void add_hos_info(hos_info_t **handle, hos_info_t *input)
{
hos_info_t *value = NULL;
HASH_FIND_INT(*handle, &input->fd, value);
HASH_FIND_INT(*handle, (int *)&input->fd, value);
if (value == NULL)
{
value = (hos_info_t *)malloc(sizeof(hos_info_t));