Skip to content
Snippets Groups Projects
Commit 854f63d4 authored by Yury Kotov's avatar Yury Kotov Committed by Markus Armbruster
Browse files

monitor: Fix return type of monitor_fdset_dup_fd_find


monitor_fdset_dup_fd_find_remove() and monitor_fdset_dup_fd_find()
return mon_fdset->id which is int64_t. Downcasting from int64_t to int
leads to a bug with removing fd from fdset with id >= 2^32.
So, fix return types for these function.

Signed-off-by: default avatarYury Kotov <yury-kotov@yandex-team.ru>
Reviewed-by: default avatarMarkus Armbruster <armbru@redhat.com>
Message-Id: <20190523094433.30297-1-yury-kotov@yandex-team.ru>
Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
parent 076243ff
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment