WiimoteReal/IOLinux: Fix warning.
This commit is contained in:
1 parent
590b94975d
commit
26c5b2f57a
1 file changed
+2
-1
@@ -138,7 +138,8 @@ static int HciInquiry(int device_socket, InquiryRequest* request)
|
||||
|
||||
// Signal doneness to `poll`.
|
||||
u64 val = 1;
|
||||
write(done_event, &val, sizeof(val));
|
||||
if (write(done_event, &val, sizeof(val)) != sizeof(val))
|
||||
ERROR_LOG_FMT(WIIMOTE, "failed to write to eventfd: {}", Common::LastStrerrorString());
|
||||
}};
|
||||
Common::ScopeGuard join_guard([&] { pthread_join(hci_inquiry_thread.handle, nullptr); });
|
||||
|
||||
|
||||
Reference in new issue
Block a user