diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2016-10-31 12:57:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-31 12:57:03 +0100 |
| commit | 2afa877119b0914afdd7d99e7b31df1760f49413 (patch) | |
| tree | 77f821594b74b36a5e7db1db6c208e038376230a /Source/Core/InputCommon/ControllerInterface | |
| parent | f1dc6c310644b75f868e450db919a47958afd438 (diff) | |
| parent | 1233697b2f1e57e1fc6981aaec112c2bd3b5076d (diff) | |
Merge pull request #4376 from leoetlino/warning-fix
Warning fixes
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp index 08687332fb..d3f8f5fd36 100644 --- a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp +++ b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp @@ -131,7 +131,9 @@ static void StopHotplugThread() { // Write something to efd so that select() stops blocking. uint64_t value = 1; - write(s_wakeup_eventfd, &value, sizeof(uint64_t)); + if (write(s_wakeup_eventfd, &value, sizeof(uint64_t)) < 0) + { + } s_hotplug_thread.join(); } } @@ -404,7 +406,9 @@ void evdevDevice::ForceFeedback::SetState(ControlState state) play.code = m_id; play.value = 1; - write(m_fd, (const void*)&play, sizeof(play)); + if (write(m_fd, &play, sizeof(play)) < 0) + { + } } } |
