diff options
| author | 彭宣正 <[email protected]> | 2021-04-06 13:47:47 +0800 |
|---|---|---|
| committer | 彭宣正 <[email protected]> | 2021-04-07 10:41:44 +0800 |
| commit | 6bb183780c55f430a16dbf09e174ef4f42ff2df5 (patch) | |
| tree | a4f6ab34f6c0c70a091823425da586b0f258ca20 /src/hos_hash.cpp | |
| parent | 88a38be0922d1b2f6e2e5335dc407d78d2889d08 (diff) | |
修复add_hos_info
Diffstat (limited to 'src/hos_hash.cpp')
| -rw-r--r-- | src/hos_hash.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hos_hash.cpp b/src/hos_hash.cpp index fe6662e9..bf54005d 100644 --- a/src/hos_hash.cpp +++ b/src/hos_hash.cpp @@ -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)); |
