rcinput: fix compiler warnings about unused variables

Origin commit data
------------------
Branch: ni/coolstream
Commit: 8aa745151b
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-12-11 (Mon, 11 Dec 2017)

Origin message was:
------------------
- rcinput: fix compiler warnings about unused variables

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-12-11 12:57:56 +01:00
parent 4da30e95e3
commit 77784b50ff

View File

@@ -197,10 +197,8 @@ void CRCInput::open(bool recheck)
/* close() takes the lock, too... */
OpenThreads::ScopedLock<OpenThreads::Mutex> m_lock(mutex);
unsigned long evbit;
struct in_dev id;
DIR *dir;
struct dirent *dentry;
dir = opendir("/dev/input");
if (! dir) {
printf("[rcinput:%s] opendir failed: %m\n", __func__);
@@ -208,6 +206,8 @@ void CRCInput::open(bool recheck)
}
#if !HAVE_GENERIC_HARDWARE
unsigned long evbit;
struct dirent *dentry;
while ((dentry = readdir(dir)) != NULL)
{
id.path = "/dev/input/" + std::string(dentry->d_name);