which file? On Thu, Jun 7, 2012 at 8:51 AM, Vincent Torri <vincent.to...@gmail.com>wrote:
> in that file, someone reported a wrong use of declaration in a loop > (for (int i = ***). Can you fix it ? > > Vincent > > On Thu, Jun 7, 2012 at 9:22 AM, Enlightenment SVN > <no-re...@enlightenment.org> wrote: > > Log: > > on the advice of the insightful creator of dns.c, account for when a UDP > > answer is truncated and the resolver switches to TCP, causing the pollfd > > descriptor will change. Any poll on this old descriptor will either > > timeout or continually poll as ready > > > > > > Author: discomfitor > > Date: 2012-06-07 00:22:53 -0700 (Thu, 07 Jun 2012) > > New Revision: 71776 > > Trac: http://trac.enlightenment.org/e/changeset/71776 > > > > Modified: > > trunk/ecore/src/lib/ecore_con/ecore_con_dns.c > > > > Modified: trunk/ecore/src/lib/ecore_con/ecore_con_dns.c > > =================================================================== > > --- trunk/ecore/src/lib/ecore_con/ecore_con_dns.c 2012-06-07 > 07:17:45 UTC (rev 71775) > > +++ trunk/ecore/src/lib/ecore_con/ecore_con_dns.c 2012-06-07 > 07:22:53 UTC (rev 71776) > > @@ -115,10 +115,16 @@ > > } > > > > static Eina_Bool > > -_dns_fd_cb(Ecore_Con_DNS *dns, Ecore_Fd_Handler *fdh) > > +_dns_fd_cb(Ecore_Con_DNS *dns, Ecore_Fd_Handler *fdh __UNUSED__) > > { > > - if (_ecore_con_dns_check(dns) == 1) > > - ecore_main_fd_handler_active_set(fdh, dns_ai_events(dns->ai)); > > + if (_ecore_con_dns_check(dns) != 1) return ECORE_CALLBACK_RENEW; > > + if (ecore_main_fd_handler_fd_get(dns->fdh) != dns_ai_pollfd(dns->ai)) > > + { > > + ecore_main_fd_handler_del(dns->fdh); > > + dns->fdh = ecore_main_fd_handler_add(dns_ai_pollfd(dns->ai), > dns_ai_events(dns->ai), (Ecore_Fd_Cb)_dns_fd_cb, dns, NULL, NULL); > > + } > > + else > > + ecore_main_fd_handler_active_set(dns->fdh, dns_ai_events(dns->ai)); > > return ECORE_CALLBACK_RENEW; > > } > > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > enlightenment-svn mailing list > > enlightenment-...@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel