[icinga-checkins] icinga.org: icinga2/feature/logstash-11436: Remove pointer

git at icinga.org git at icinga.org
Thu Jul 14 09:22:32 CEST 2016


Module: icinga2
Branch: feature/logstash-11436
Commit: 1db4852d8eb4c0aa5928d8c536dfd16dfd324209
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=1db4852d8eb4c0aa5928d8c536dfd16dfd324209

Author: Kai Goller <kai.goller at netways.de>
Date:   Thu Jul 14 09:21:20 2016 +0200

Remove pointer

refs #11436

---

 lib/base/tcpsocket.cpp |    4 ++--
 lib/base/udpsocket.cpp |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/base/tcpsocket.cpp b/lib/base/tcpsocket.cpp
index 64520f6..2602a51 100644
--- a/lib/base/tcpsocket.cpp
+++ b/lib/base/tcpsocket.cpp
@@ -28,8 +28,8 @@
 using namespace icinga;
 
 void TcpSocket::SocketType(){
-        *&socktype = SOCK_STREAM;
-        *&protocol = IPPROTO_TCP;
+        socktype = SOCK_STREAM;
+        protocol = IPPROTO_TCP;
 }
 
 /**
diff --git a/lib/base/udpsocket.cpp b/lib/base/udpsocket.cpp
index a7482c1..2b219c9 100644
--- a/lib/base/udpsocket.cpp
+++ b/lib/base/udpsocket.cpp
@@ -28,6 +28,6 @@
 using namespace icinga;
 
 void UdpSocket::SocketType(){
-	*&socktype = SOCK_DGRAM;
-	*&protocol = IPPROTO_UDP;
+	socktype = SOCK_DGRAM;
+	protocol = IPPROTO_UDP;
 }



More information about the icinga-checkins mailing list