Clean-ups and fixes to compile with more warnings enabled and with g++.
[invirt/third/libt4.git] / rpc / rpc.cc
index 7937785..6985498 100644 (file)
@@ -99,7 +99,7 @@ int rpcc::bind(milliseconds to) {
         IF_LEVEL(2) LOG("bind " << inet_ntoa(dst_.sin_addr) << " failed " << ret);
     }
     return ret;
-};
+}
 
 // Cancel all outstanding calls
 void rpcc::cancel(void) {
@@ -537,7 +537,7 @@ static sockaddr_in make_sockaddr(const string & hostandport) {
         port = hostandport.substr(colon+1);
     }
 
-    sockaddr_in dst{}; // zero initialize
+    sockaddr_in dst = sockaddr_in(); // zero initialize
     dst.sin_family = AF_INET;
 
     struct in_addr a{inet_addr(host.c_str())};