From 1e3e07a42e48460c658c9a5ee360c99f70499c8b Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 5 Jun 2009 21:04:37 +0000 Subject: [PATCH] picky compilers git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13655 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_core.c b/src/switch_core.c index 4991ae0880..2e6c18712b 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -104,11 +104,11 @@ 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 }; 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(mask)); + switch_core_set_variable("local_mask_v4", inet_ntoa(in)); } }