提交 13e634de 编写于 作者: D dann frazier 提交者: 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: Ndann frazier <dann.frazier@canonical.com>
Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册