summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2013-09-21 15:41:50 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-09-21 15:41:50 -0500
commit7071eb3ada7cd0e5f5f68f3ea2638e04e650fb6b (patch)
tree24ccb6592a2bc37cc07d3b588ba901b4e92a9a8c
parentsparc irq-shared.c: Fix unused variable warning (diff)
downloadrtems-7071eb3ada7cd0e5f5f68f3ea2638e04e650fb6b.tar.bz2
mouse_parser.c: Fix warning by properly checking return code
-rw-r--r--cpukit/libmisc/mouse/mouse_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libmisc/mouse/mouse_parser.c b/cpukit/libmisc/mouse/mouse_parser.c
index 6ca871bf52..2831f64b95 100644
--- a/cpukit/libmisc/mouse/mouse_parser.c
+++ b/cpukit/libmisc/mouse/mouse_parser.c
@@ -299,7 +299,7 @@ void mouse_parser_enqueue( unsigned char *buffer, size_t size )
BUTTON bptr;
while( size-- ) {
- if ( MOU_Data( *buffer++, &dx, &dy, &dz, &bptr ) ) {
+ if ( MOU_Data( *buffer++, &dx, &dy, &dz, &bptr ) == 1 ) {
struct MW_UID_MESSAGE m;
m.type = MV_UID_REL_POS;