projects
/
invirt/third/libt4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean-ups and fixes to compile with more warnings enabled and with g++.
[invirt/third/libt4.git]
/
rpc
/
rpc.cc
diff --git
a/rpc/rpc.cc
b/rpc/rpc.cc
index
7937785
..
6985498
100644
(file)
--- a/
rpc/rpc.cc
+++ b/
rpc/rpc.cc
@@
-99,7
+99,7
@@
int rpcc::bind(milliseconds to) {
IF_LEVEL(2) LOG("bind " << inet_ntoa(dst_.sin_addr) << " failed " << ret);
}
return ret;
IF_LEVEL(2) LOG("bind " << inet_ntoa(dst_.sin_addr) << " failed " << ret);
}
return ret;
-};
+}
// Cancel all outstanding calls
void rpcc::cancel(void) {
// 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);
}
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())};
dst.sin_family = AF_INET;
struct in_addr a{inet_addr(host.c_str())};