X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FSocket%2FProtocols%2FDVB%2FDVBFrontendHandle.cc;h=7d6edf59b9d58e1563583faaa3a3d64f2f436ba8;hb=82e794070d4f3ae8aacb1827b21a93b9d48ce57f;hp=5194f6c467f1c44a7b89cd4c19df5cf79b6b0ed7;hpb=1c55e269cfd07c017fe592a04d1ec86fdc7f4b37;p=senf.git diff --git a/senf/Socket/Protocols/DVB/DVBFrontendHandle.cc b/senf/Socket/Protocols/DVB/DVBFrontendHandle.cc index 5194f6c..7d6edf5 100644 --- a/senf/Socket/Protocols/DVB/DVBFrontendHandle.cc +++ b/senf/Socket/Protocols/DVB/DVBFrontendHandle.cc @@ -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.");