Commit 5ee43f5e authored by Povilas Kanapickas's avatar Povilas Kanapickas
Browse files

Fix old style cast warnings

parent 81f45f5d
......@@ -425,10 +425,11 @@ static int _x_error_handler(Display *dpy, XErrorEvent *err)
break;
}
ADD_FAILURE() << "XError received: " << error.str() << ", request " <<
(int)err->request_code << "(" << (int)err->minor_code << "), detail: "
<< err->resourceid << "\nThis error handler is likely to be triggered "
"more than once.\nCheck the first error for the real error";
ADD_FAILURE() << "XError received: " << error.str() << ", request "
<< static_cast<int>(err->request_code) << "(" << static_cast<int>(err->minor_code)
<< "), detail: " << err->resourceid
<< "\nThis error handler is likely to be triggered "
"more than once.\nCheck the first error for the real error";
return 0;
}
......
......@@ -91,7 +91,7 @@ TEST(Process, ChildTearDown)
char *buffer;
ASSERT_GT(asprintf(&buffer, "%d", p.Pid()), 0);
ASSERT_EQ(write(pipefd[1], buffer, strlen(buffer)), (int)strlen(buffer));
ASSERT_EQ(write(pipefd[1], buffer, strlen(buffer)), static_cast<int>(strlen(buffer)));
close(pipefd[1]);
raise(SIGKILL);
......
......@@ -321,7 +321,7 @@ TEST(XServer, KeepAlive)
char *buffer;
ASSERT_GT(asprintf(&buffer, "%d", server.Pid()), 0);
ASSERT_EQ(write(pipefd[1], buffer, strlen(buffer)), (int)strlen(buffer));
ASSERT_EQ(write(pipefd[1], buffer, strlen(buffer)), static_cast<int>(strlen(buffer)));
close(pipefd[1]);
free(buffer);
exit(0);
......
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