Be more explicit about field naming in a test.
authorJason Parker <jparker@digium.com>
Tue, 27 Apr 2010 22:28:16 +0000 (22:28 +0000)
committerJason Parker <jparker@digium.com>
Tue, 27 Apr 2010 22:28:16 +0000 (22:28 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@259587 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/sip/dialplan_functions.c

index 297f9f5..509eacf 100644 (file)
@@ -262,7 +262,7 @@ AST_TEST_DEFINE(test_sip_rtpqos_1)
                .write = test_sip_rtpqos_1_write,
                .get_stat = test_sip_rtpqos_1_get_stat,
        };
-       struct sockaddr_in sin = { .sin_port = 31337, .sin_addr = { 4 * 16777216 + 3 * 65536 + 2 * 256 + 1 } };
+       struct sockaddr_in sin = { .sin_port = 31337, .sin_addr = { .s_addr = 4 * 16777216 + 3 * 65536 + 2 * 256 + 1 } };
        struct ast_rtp_instance_stats mine = { 0, };
        struct sip_pvt *p = NULL;
        struct ast_channel *chan = NULL;