diff options
author | dann frazier <dann.frazier@canonical.com> | 2015-01-05 19:54:40 -0700 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2015-01-06 12:55:21 -0700 |
commit | 13e634de0955a2da84a7bf8584d103805b455cbb (patch) | |
tree | 4d3476cfca64a267364bb7cbadbe7203fafd3e46 | |
parent | cd805f367633f6540aa287751c270973b7e4cdc9 (diff) | |
download | talos-obmc-linux-13e634de0955a2da84a7bf8584d103805b455cbb.tar.gz talos-obmc-linux-13e634de0955a2da84a7bf8584d103805b455cbb.zip |
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>
-rw-r--r-- | tools/testing/selftests/mqueue/mq_perf_tests.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/testing/selftests/mqueue/mq_perf_tests.c b/tools/testing/selftests/mqueue/mq_perf_tests.c index 94dae65eea41..8519e9ee97e3 100644 --- a/tools/testing/selftests/mqueue/mq_perf_tests.c +++ b/tools/testing/selftests/mqueue/mq_perf_tests.c @@ -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(); |