List:Commits« Previous MessageNext Message »
From:Magnus Blåudd Date:October 19 2010 12:05pm
Subject:bzr commit into mysql-5.1-telco-7.0 branch (magnus.blaudd:3873)
View as plain text  
#At file:///home/msvensson/mysql/7.0/ based on revid:magnus.blaudd@stripped

 3873 Magnus Blåudd	2010-10-19
      ndb
       - fix warning in IPV6 code, reported as BUG57562

    modified:
      vio/viosocket.c
=== modified file 'vio/viosocket.c'
--- a/vio/viosocket.c	2010-05-26 09:50:01 +0000
+++ b/vio/viosocket.c	2010-10-19 12:05:56 +0000
@@ -856,8 +856,11 @@ my_bool vio_get_normalized_ip_string(con
                                      char *ip_string,
                                      size_t ip_string_size)
 {
-  struct sockaddr_storage norm_addr_storage;
-  struct sockaddr *norm_addr= (struct sockaddr *) &norm_addr_storage;
+  union {
+    struct sockaddr_storage norm_addr_storage;
+    struct sockaddr _avoid_strict_alias_warning;
+  } tmp_addr;
+  struct sockaddr *norm_addr= (struct sockaddr *) &tmp_addr.norm_addr_storage;
   int norm_addr_length;
   int err_code;
 

Attachment: [text/bzr-bundle] bzr/magnus.blaudd@sun.com-20101019120556-h298zucgkzpqonmx.bundle
Thread
bzr commit into mysql-5.1-telco-7.0 branch (magnus.blaudd:3873) Magnus Blåudd19 Oct