projects
/
senf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
1963b8c
)
Socket/Protocols/BSDSocketProtocol: minor bugfix
tho [Thu, 12 Feb 2009 16:05:49 +0000 (16:05 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1118
270642c3
-0616-0410-b53a-bc976706d245
Socket/Protocols/BSDSocketProtocol.cc
patch
|
blob
|
history
diff --git
a/Socket/Protocols/BSDSocketProtocol.cc
b/Socket/Protocols/BSDSocketProtocol.cc
index
cfd06b5
..
4524cae
100644
(file)
--- a/
Socket/Protocols/BSDSocketProtocol.cc
+++ b/
Socket/Protocols/BSDSocketProtocol.cc
@@
-41,7
+41,7
@@
prefix_ std::pair<bool,unsigned> senf::BSDSocketProtocol::linger()
{
struct linger ling;
socklen_t len = sizeof(ling);
- ::memset(&ling,sizeof(ling),0);
+ ::memset(&ling, 0, sizeof(ling));
if (::getsockopt(fd(),SOL_SOCKET,SO_LINGER,&ling,&len) < 0)
SENF_THROW_SYSTEM_EXCEPTION("");
return std::make_pair(ling.l_onoff, ling.l_linger);
@@
-147,7
+147,7
@@
prefix_ void senf::AddressableBSDSocketProtocol::reuseaddr(bool value)
#undef prefix_
//#include "BSDSocketProtocol.mpp"
-
\f
+
// Local Variables:
// mode: c++
// fill-column: 100