Commit 13e634de authored by dann frazier's avatar dann frazier Committed by Shuah Khan

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: default avatardann frazier <dann.frazier@canonical.com>
Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
parent cd805f36
......@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment