aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-07-10 13:31:23 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-07-10 13:31:23 +0000
commiteb809af235f29275f9a1e34c16d781dfdcf0156e (patch)
tree4256b48a3c1f3d715e69a9929bc149b803db623e /lib/dvb
parent669723ea96dadeca85546e498ea3ede3e619ef4c (diff)
downloadenigma2-eb809af235f29275f9a1e34c16d781dfdcf0156e.tar.gz
enigma2-eb809af235f29275f9a1e34c16d781dfdcf0156e.zip
fix small bug
Diffstat (limited to 'lib/dvb')
-rw-r--r--lib/dvb/frontend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dvb/frontend.cpp b/lib/dvb/frontend.cpp
index e1af3098..df98dc24 100644
--- a/lib/dvb/frontend.cpp
+++ b/lib/dvb/frontend.cpp
@@ -1541,7 +1541,7 @@ void eDVBFrontend::tuneLoop() // called by m_tuneTimer
if (f) // new interface exist?
{
bool slimiting = m_sec_sequence.current()->mode == eSecCommand::modeStatic;
- if (fprintf(f, "%s", slimiting ? "on" : "off") != 1)
+ if (fprintf(f, "%s", slimiting ? "on" : "off") <= 0)
eDebug("write %s failed!! (%m)", proc_name);
else
eDebug("[SEC] set %s current limiting", slimiting ? "static" : "dynamic");