X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FSocket%2FProtocols%2FDVB%2FDVBFrontendHandle.cc;h=deaf5f1fe30fe5ca385675c9805d1757b006b7bf;hb=767a76da8e5b96a69b620e44d32e0a1b04005679;hp=bb63f70cb7531f8ef65cd9e6b738428b3e269250;hpb=601d1f509f5bb24df167a4dd5a20da67a0af9af8;p=senf.git diff --git a/senf/Socket/Protocols/DVB/DVBFrontendHandle.cc b/senf/Socket/Protocols/DVB/DVBFrontendHandle.cc index bb63f70..deaf5f1 100644 --- a/senf/Socket/Protocols/DVB/DVBFrontendHandle.cc +++ b/senf/Socket/Protocols/DVB/DVBFrontendHandle.cc @@ -30,7 +30,7 @@ // Custom includes #include #include -#include "../../../Utils/Exception.hh" +#include #include @@ -155,7 +155,7 @@ const prefix_ void senf::DVBFrontendSocketProtocol::setNonBlock(bool on) const { - if(on) + if (on) ::fcntl(fd(), F_SETFL, ::fcntl(fd(), F_GETFL) | O_NONBLOCK); else ::fcntl(fd(), F_SETFL, ::fcntl(fd(), F_GETFL) & ~O_NONBLOCK); @@ -167,7 +167,7 @@ prefix_ dvb_frontend_info senf::DVBFrontendSocketProtocol::getInfo() struct dvb_frontend_info info; ::memset(&info, 0, sizeof(struct dvb_frontend_info)); - if( ::ioctl(fd(), FE_GET_INFO, &info) ) { + if (::ioctl(fd(), FE_GET_INFO, &info)) { SENF_THROW_SYSTEM_EXCEPTION("") << "Could not read on fildescriptor."; } return info; @@ -178,7 +178,7 @@ prefix_ dvb_frontend_parameters senf::DVBFrontendSocketProtocol::getFrontendPara ::memset(&frontend_, 0, sizeof(struct dvb_frontend_parameters)); - if(::ioctl(fd(), FE_GET_FRONTEND, &frontend_)) { + if (::ioctl(fd(), FE_GET_FRONTEND, &frontend_)) { switch(errno) { case EBADF: SENF_THROW_SYSTEM_EXCEPTION("fd is not a valid open file descriptor."); @@ -201,7 +201,7 @@ prefix_ dvb_frontend_event senf::DVBFrontendSocketProtocol::getEvent() const{ ::memset(&ev, 0, sizeof(struct dvb_frontend_event)); - if(::ioctl(fd(), FE_GET_EVENT, &ev)) { + if (::ioctl(fd(), FE_GET_EVENT, &ev)) { switch(errno) { case EBADF: SENF_THROW_SYSTEM_EXCEPTION("Could not read from frontend device, read-only access to the device is sufficient."); @@ -267,7 +267,7 @@ prefix_ fe_status_t senf::DVBFrontendSocketProtocol::status() #undef prefix_ //#include "DVBFrontendHandle.mpp" - + // Local Variables: // mode: c++ // fill-column: 100