]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
picky compilers
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 5 Jun 2009 20:57:34 +0000 (20:57 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 5 Jun 2009 20:57:34 +0000 (20:57 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13651 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core.c

index c82e04e0bf2100cc0b449f96c35f0e20f4a4bfb2..0082fd3d2fb16932a73041f3275ab95bcaaf739f 100644 (file)
@@ -107,7 +107,7 @@ static void check_ip(void) {
                        switch_set_string(old_ip4, main_ip4);
                        switch_set_string(main_ip4, guess_ip4);
                        switch_core_set_variable("local_ip_v4", guess_ip4);
-                       switch_core_set_variable("local_mask_v4", inet_ntoa(*(struct in_addr *)&mask));
+                       switch_core_set_variable("local_mask_v4", inet_ntoa(*(struct in_addr *)(intptr_t)&mask));
                }
        }