aboutsummaryrefslogtreecommitdiff
path: root/rmidevice/hiddevice.cpp
diff options
context:
space:
mode:
authorAndrew Duggan <aduggan@synaptics.com>2014-04-29 13:34:42 -0700
committerAndrew Duggan <aduggan@synaptics.com>2014-04-29 13:34:42 -0700
commite9a5cd0172ce96168a9431531d259b677f331aa6 (patch)
treeb210ba77d0deacecd5288d661de20e6c7efe51af /rmidevice/hiddevice.cpp
parentd02a0b030911951257e354fa82ce967bc4e51f9f (diff)
downloadrmi4utils-e9a5cd0172ce96168a9431531d259b677f331aa6.tar.gz
Add additional commands to rmihidtool and allow them to be set from the command line.
Diffstat (limited to 'rmidevice/hiddevice.cpp')
-rw-r--r--rmidevice/hiddevice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rmidevice/hiddevice.cpp b/rmidevice/hiddevice.cpp
index 800dbe0..8b99d75 100644
--- a/rmidevice/hiddevice.cpp
+++ b/rmidevice/hiddevice.cpp
@@ -250,14 +250,14 @@ int HIDDevice::WaitForAttention(struct timeval * timeout, int *sources)
return GetAttentionReport(timeout, sources, NULL, NULL);
}
-int HIDDevice::GetAttentionReport(struct timeval * timeout, int *sources, unsigned char *buf, int *len)
+int HIDDevice::GetAttentionReport(struct timeval * timeout, int *sources, unsigned char *buf, unsigned int *len)
{
int rc;
int interrupt_sources;
const unsigned char * queue_report;
int bytes = m_inputReportSize;
- if (len && (int)m_inputReportSize < *len) {
+ if (len && m_inputReportSize < *len) {
bytes = *len;
*len = m_inputReportSize;
}