libdvbv5: Rename internally-defined poll function as dvb_poll
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 31 Aug 2014 22:49:08 +0000 (19:49 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 31 Aug 2014 22:51:13 +0000 (19:51 -0300)
commit167946400c601add27d0f93ebb7d7561e42413cc
tree6e91e51f4c96b0ff39816e783f8bf1b9384e1ed1
parentbfd24a9228beb5535cb2516461f34c230de2fa8b
libdvbv5: Rename internally-defined poll function as dvb_poll

poll() is the name of a glibc function. Rename it as dvb_poll().

That should likely fix a Coverity warning:

278      do {
>>>     CID 1233564:  Out-of-bounds access  (ARRAY_VS_SINGLETON)
>>>     Passing "&parms->p" to function "poll" which uses it as an array. This might corrupt or misinterpret adjacent memory locations. [Note: The source code implementation of the function has been overridden by a builtin model.]
279      available = poll(&parms->p, dmx_fd, timeout);
280      } while (available < 0 && errno == EOVERFLOW);

Also, as this function is static, use the private struct directly.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
lib/libdvbv5/dvb-scan.c