X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocols%2FDVB%2FDVBFrontendHandle.cc;h=43dcd1cfd342c59315af4d628e294021c8edc4a2;hb=1ad3873b372da6187b1fbc645bf276287d2efb54;hp=2a8755995b2a77d9e25ddef32214c9ea115a1678;hpb=ceba483d966a9fd884b30fb9dac07156b29a4b31;p=senf.git diff --git a/Socket/Protocols/DVB/DVBFrontendHandle.cc b/Socket/Protocols/DVB/DVBFrontendHandle.cc index 2a87559..43dcd1c 100644 --- a/Socket/Protocols/DVB/DVBFrontendHandle.cc +++ b/Socket/Protocols/DVB/DVBFrontendHandle.cc @@ -31,7 +31,7 @@ #include #include #include -#include "Utils/Exception.hh" +#include "../../../Utils/Exception.hh" //#include "DVBFrontendHandle.mpp" #define prefix_ @@ -45,10 +45,10 @@ prefix_ void senf::DVBFrontendProtocol::init_client(uint8_t adapter, boost::uint { std::string devFrontend = str( boost::format( "/dev/dvb/adapter%d/frontend%d") % adapter % device); - int fd = open(devFrontend.c_str(), O_RDONLY | O_NONBLOCK); - if (fd < 0) - throw SystemException(errno); - body().fd(fd); + int f = open(devFrontend.c_str(), O_RDONLY | O_NONBLOCK); + if (f < 0) + throwErrno(); + fd(f); } prefix_ unsigned senf::DVBFrontendProtocol::available() @@ -73,8 +73,8 @@ prefix_ std::auto_ptr senf::DVBFrontendProtocol::clone() prefix_ void senf::DVBFrontendProtocol::signalStrength(int16_t *strength) const { - if (::ioctl(body().fd(), FE_READ_SIGNAL_STRENGTH, strength) < 0) - throw SystemException(errno); + if (::ioctl(fd(), FE_READ_SIGNAL_STRENGTH, strength) < 0) + throwErrno(); } ///////////////////////////////cc.e////////////////////////////////////////