hostid fix on solaris v2
authorebensza <bence.janos.szabo@ericsson.com>
Thu, 5 May 2016 11:07:13 +0000 (13:07 +0200)
committerebensza <bence.janos.szabo@ericsson.com>
Thu, 5 May 2016 11:07:13 +0000 (13:07 +0200)
Signed-off-by: ebensza <bence.janos.szabo@ericsson.com>
core/Runtime.cc

index cf54eb6d6b7fdeb60a55bd34de8883040d014291..44c4ce1786678f61e9b7178281d9dfc40245443e 100644 (file)
@@ -303,13 +303,11 @@ CHARSTRING TTCN_Runtime::get_host_address(const CHARSTRING& type)
     }
   }
   if (type == "Ipv6") {
-    const IPv6Address * ipv6 = NULL;
 #if defined(LINUX) || defined(CYGWIN17)
-    ipv6 = dynamic_cast<const IPv6Address*>(address);
+    const IPv6Address * ipv6 = dynamic_cast<const IPv6Address*>(address);
+    if (ipv6 == NULL) 
 #endif // LINUX || CYGWIN17
-    if (ipv6 == NULL) {
       return CHARSTRING("");
-    }
   }
   // Return the string representation of the address
   return CHARSTRING(address->get_addr_str());
This page took 0.024672 seconds and 5 git commands to generate.