diff options
author | Volker Lendecke <vl@samba.org> | 2013-06-13 20:35:32 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-06-14 09:31:39 -0700 |
commit | dd0e38b5feb51c8aa44e76bb6c84202bf8373005 (patch) | |
tree | da224f644fcf096fc501ae4e0548bf9ab564f2b3 /lib/tevent | |
parent | f1781adb051bb5a166d619ed9db6bdb252b1acb5 (diff) | |
download | samba-dd0e38b5feb51c8aa44e76bb6c84202bf8373005.tar.gz samba-dd0e38b5feb51c8aa44e76bb6c84202bf8373005.tar.bz2 samba-dd0e38b5feb51c8aa44e76bb6c84202bf8373005.zip |
tevent: Fix Coverity ID 989236 Operands don't affect result
"unsigned" could be less than uint64_t, so idx==UINT64_MAX is always false.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/tevent')
-rw-r--r-- | lib/tevent/tevent_poll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tevent/tevent_poll.c b/lib/tevent/tevent_poll.c index c6e2a00ffe..75d0ced5a0 100644 --- a/lib/tevent/tevent_poll.c +++ b/lib/tevent/tevent_poll.c @@ -546,7 +546,7 @@ static int poll_event_loop_poll(struct tevent_context *ev, the handler to remove itself when called */ for (fde = ev->fd_events; fde; fde = fde->next) { - unsigned idx = fde->additional_flags; + uint64_t idx = fde->additional_flags; struct pollfd *pfd; uint16_t flags = 0; |