Blame SOURCES/0001-tevent-Fix-Coverity-ID-989236-Operands-don-t-affect-.patch

d4744b
From dd0e38b5feb51c8aa44e76bb6c84202bf8373005 Mon Sep 17 00:00:00 2001
d4744b
From: Volker Lendecke <vl@samba.org>
d4744b
Date: Thu, 13 Jun 2013 20:35:32 +0200
d4744b
Subject: [PATCH] tevent: Fix Coverity ID 989236 Operands don't affect result
d4744b
d4744b
"unsigned" could be less than uint64_t, so idx==UINT64_MAX is always false.
d4744b
d4744b
Signed-off-by: Volker Lendecke <vl@samba.org>
d4744b
Reviewed-by: Jeremy Allison <jra@samba.org>
d4744b
d4744b
diff --git a/lib/tevent/tevent_poll.c b/lib/tevent/tevent_poll.c
d4744b
index c6e2a00ffec6393fd6fccc1a3836f63e4ef4e045..75d0ced5a09ea86505a5df49b3c84073d3aa0f02 100644
d4744b
--- a/lib/tevent/tevent_poll.c
d4744b
+++ b/lib/tevent/tevent_poll.c
d4744b
@@ -546,7 +546,7 @@ static int poll_event_loop_poll(struct tevent_context *ev,
d4744b
 	   the handler to remove itself when called */
d4744b
 
d4744b
 	for (fde = ev->fd_events; fde; fde = fde->next) {
d4744b
-		unsigned idx = fde->additional_flags;
d4744b
+		uint64_t idx = fde->additional_flags;
d4744b
 		struct pollfd *pfd;
d4744b
 		uint16_t flags = 0;
d4744b
 
d4744b
-- 
d4744b
1.8.2.1
d4744b