tools: testing: selftests: mq_perf_tests: Fix infinite loop on ARM

We can't use a char type to check for a negative return value since char
isn't guaranteed to be signed. Indeed, the char type tends to be unsigned on
ARM.

Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
This commit is contained in:
dann frazier 2015-01-05 19:54:40 -07:00 committed by Shuah Khan
parent cd805f3676
commit 13e634de09
1 changed files with 1 additions and 2 deletions

View File

@ -536,10 +536,9 @@ int main(int argc, char *argv[])
{
struct mq_attr attr;
char *option, *next_option;
int i, cpu;
int i, cpu, rc;
struct sigaction sa;
poptContext popt_context;
char rc;
void *retval;
main_thread = pthread_self();