From 7071eb3ada7cd0e5f5f68f3ea2638e04e650fb6b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sat, 21 Sep 2013 15:41:50 -0500 Subject: mouse_parser.c: Fix warning by properly checking return code --- cpukit/libmisc/mouse/mouse_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3