aboutsummaryrefslogtreecommitdiff
path: root/lib/base
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-06-11 16:56:52 +0200
committerghost <andreas.monzner@multimedia-labs.de>2009-06-11 16:56:52 +0200
commitcd9f6cc9a0b18aa62d88448d04e7a163606167c4 (patch)
tree00b850a0f051618695aa55d2a2787cee6a942d57 /lib/base
parent30562d78ee2be5fe628a88cce45f7671ff0644bb (diff)
downloadenigma2-cd9f6cc9a0b18aa62d88448d04e7a163606167c4.tar.gz
enigma2-cd9f6cc9a0b18aa62d88448d04e7a163606167c4.zip
fix compiler warning
Diffstat (limited to 'lib/base')
-rw-r--r--lib/base/filepush.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/base/filepush.cpp b/lib/base/filepush.cpp
index 645d3685..d43b6e1c 100644
--- a/lib/base/filepush.cpp
+++ b/lib/base/filepush.cpp
@@ -190,8 +190,10 @@ void eFilePushThread::thread()
{
eDebug("sending PVR commit");
- struct pollfd pfd[1] = {m_fd_dest, POLLHUP};
- poll(pfd, 1, 10000);
+ struct pollfd pfd;
+ pfd.fd = m_fd_dest;
+ pfd.events = POLLHUP;
+ poll(&pfd, 1, 10000);
sleep(5); /* HACK to allow ES buffer to drain */
already_empty = 1;
// if (::ioctl(m_fd_dest, PVR_COMMIT) < 0 && errno == EINTR)