[lldb] Fix -Wformat warning in debugserver unit test

RNBSocketTest.cpp:31:35: warning: format specifies type 'char *' but the
argument has type 'const void *' [-Wformat]
This commit is contained in:
Jonas Devlieghere 2020-12-08 19:30:10 -08:00
parent 846f576bea
commit c59ccc0222
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ static void ServerCallbackv4(const void *baton, in_port_t port) {
auto child_pid = fork();
if (child_pid == 0) {
char addr_buffer[256];
sprintf(addr_buffer, "%s:%d", baton, port);
sprintf(addr_buffer, "%s:%d", (const char *)baton, port);
llvm::Expected<std::unique_ptr<Socket>> socket_or_err =
Socket::TcpConnect(addr_buffer, false);
ASSERT_THAT_EXPECTED(socket_or_err, llvm::Succeeded());