------------------------------------------------------------
revno: 2157
committer: Razzloss <[email protected]>
branch nick: dcplusplus
timestamp: Sun 2010-06-06 15:08:16 +0300
message:
Fix C-isms from previous commit
modified:
dcpp/Socket.cpp
--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk
Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'dcpp/Socket.cpp'
--- dcpp/Socket.cpp 2010-06-06 11:52:52 +0000
+++ dcpp/Socket.cpp 2010-06-06 12:08:16 +0000
@@ -551,9 +551,9 @@
}
#else
// POSIX doesn't guarantee the gethostbyname to be thread safe. And it may (will) return a pointer to static data.
- struct addrinfo hints, *result;
string address = Util::emptyString;
- memset(&hints, 0, sizeof(struct addrinfo));
+ addrinfo hints = { 0 };
+ addrinfo *result;
hints.ai_family = AF_INET;
if (getaddrinfo(aDns.c_str(), NULL, &hints, &result) == 0) {
_______________________________________________
Mailing list: https://launchpad.net/~linuxdcpp-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~linuxdcpp-team
More help : https://help.launchpad.net/ListHelp