From: Anthony Minessale Date: Fri, 5 Jun 2009 21:36:52 +0000 (+0000) Subject: picky compilers X-Git-Tag: v1.0.4~586 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29b9067d3ed86bd968bbe2b7140f92d3ef7b1d2d;p=thirdparty%2Ffreeswitch.git picky compilers git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13657 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_core.c b/src/switch_core.c index e038acb93c..02845b5a70 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -104,7 +104,9 @@ static void check_ip(void) { switch_set_string(main_ip4, guess_ip4); } else { if (!(ok4 = !strcmp(main_ip4, guess_ip4))) { - struct in_addr in = { mask }; + struct in_addr in; + + in.s_addr = mask; switch_set_string(old_ip4, main_ip4); switch_set_string(main_ip4, guess_ip4); switch_core_set_variable("local_ip_v4", guess_ip4);