Commit b9d64708 authored by Branislav Katreniak's avatar Branislav Katreniak

kj/async-unix-test: fix -Wmissing-field-initializers in UrgentObserver

Warned by gcc 5.3.1 and clang 3.7.0
parent daeeda83
......@@ -470,7 +470,7 @@ TEST(AsyncUnixTest, UrgentObserver) {
// Spawn a TCP server
KJ_SYSCALL(tmpFd = socket(AF_INET, SOCK_STREAM, 0));
kj::AutoCloseFd serverFd(tmpFd);
sockaddr_in saddr = {0};
sockaddr_in saddr = {};
saddr.sin_family = AF_INET;
saddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
KJ_SYSCALL(bind(serverFd, reinterpret_cast<sockaddr*>(&saddr), sizeof(saddr)));
......
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