mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user