summaryrefslogtreecommitdiff
path: root/ACE/ace/SOCK_SEQPACK_Association.cpp
diff options
context:
space:
mode:
authorChad Elliott <elliottc@objectcomputing.com>2019-06-25 07:33:04 -0500
committerChad Elliott <elliottc@objectcomputing.com>2019-06-25 07:33:04 -0500
commit9a0cce755eeabf8bc71b749de9ff53dcc4e0d34a (patch)
treeca94e89a53cdea53027da182c5e4e896ae15af84 /ACE/ace/SOCK_SEQPACK_Association.cpp
parentea0205bef9691755788871bffaeae8a4fff49a5d (diff)
downloadATCD-9a0cce755eeabf8bc71b749de9ff53dcc4e0d34a.tar.gz
Provide two values in the struct linger initializer even though it absolutely is not required by the standard
Diffstat (limited to 'ACE/ace/SOCK_SEQPACK_Association.cpp')
-rw-r--r--ACE/ace/SOCK_SEQPACK_Association.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/ACE/ace/SOCK_SEQPACK_Association.cpp b/ACE/ace/SOCK_SEQPACK_Association.cpp
index def25b74165..e1921645f2a 100644
--- a/ACE/ace/SOCK_SEQPACK_Association.cpp
+++ b/ACE/ace/SOCK_SEQPACK_Association.cpp
@@ -49,14 +49,9 @@ ACE_SOCK_SEQPACK_Association::abort (void)
// setsockopt() SO_LINGER configures socket to reap immediately.
// Normal close then aborts the association.
//
- linger slinger = { 0 };
+ linger slinger = { 0, 0 };
slinger.l_onoff = 1;
-#if !defined(ACE_HAS_LINGER_MS)
- // Redundantly set the l_linger member to appease gcc
- slinger.l_linger = 0;
-#endif
-
if (-1 == ACE_OS::setsockopt (this->get_handle (),
SOL_SOCKET,
SO_LINGER,