diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-09-21 15:41:50 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-09-21 15:41:50 -0500 |
commit | 7071eb3ada7cd0e5f5f68f3ea2638e04e650fb6b (patch) | |
tree | 24ccb6592a2bc37cc07d3b588ba901b4e92a9a8c /cpukit/libmisc/mouse | |
parent | df74da01b79717c54dfb244039fefb8238181233 (diff) |
mouse_parser.c: Fix warning by properly checking return code
Diffstat (limited to 'cpukit/libmisc/mouse')
-rw-r--r-- | cpukit/libmisc/mouse/mouse_parser.c | 2 |
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; |