struct testdata *testdataptr;
- static AST_LIST_HEAD_NOLOCK(testdataliststruct, testdata) testdatalist;
+ AST_LIST_HEAD_NOLOCK(testdataliststruct, testdata) testdatalist;
struct testdata td1 = {
.desc = "no headers",
struct testdata *testdataptr;
- static AST_LIST_HEAD_NOLOCK(testdataliststruct, testdata) testdatalist;
+ AST_LIST_HEAD_NOLOCK(testdataliststruct, testdata) testdatalist;
struct testdata td1 = {
.desc = "quotes and brackets",
struct contact *tdcontactptr;
struct contact *contactptr;
- static AST_LIST_HEAD_NOLOCK(testdataliststruct, testdata) testdatalist;
+ AST_LIST_HEAD_NOLOCK(testdataliststruct, testdata) testdatalist;
struct contactliststruct contactlist1, contactlist2;
struct testdata td1 = {
};
struct testdata *testdataptr;
- static AST_LIST_HEAD_NOLOCK(testdataliststruct, testdata) testdatalist;
+ AST_LIST_HEAD_NOLOCK(testdataliststruct, testdata) testdatalist;
struct testdata test1 = {
.name = "test_all_unsupported",
AST_LIST_ENTRY(testdata) list;
};
struct testdata *testdataptr;
- static AST_LIST_HEAD_NOLOCK(testdataliststruct, testdata) testdatalist;
+ AST_LIST_HEAD_NOLOCK(testdataliststruct, testdata) testdatalist;
struct testdata t1 = {
.in = "SIP/2.0/UDP host:port;branch=thebranch",
.expected_protocol = "SIP/2.0/UDP",
ast_msg_set_exten(msg, "__I_SHOULD_NOT_EXIST_PLZ__");
ast_test_validate(test, ast_msg_has_destination(msg) == 0);
- ast_msg_set_exten(msg, NULL);
+ ast_msg_set_exten(msg, "%s", "");
ast_test_validate(test, ast_msg_has_destination(msg) == 0);
- ast_msg_set_context(msg, NULL);
+ ast_msg_set_context(msg, "%s", "");
ast_msg_set_exten(msg, TEST_EXTENSION);
ast_test_validate(test, ast_msg_has_destination(msg) == 0);
ast_msg_set_to(msg, "foo");
ast_msg_set_context(msg, TEST_CONTEXT);
- ast_msg_set_exten(msg, NULL);
+ ast_msg_set_exten(msg, "%s", "");
ast_test_validate(test, ast_msg_has_destination(msg) == 1);
- ast_msg_set_context(msg, NULL);
+ ast_msg_set_context(msg, "%s", "");
ast_test_validate(test, ast_msg_has_destination(msg) == 1);
ast_msg_set_to(msg, "__I_SHOULD_NOT_EXIST_PLZ__");
ast_msg_set_to(msg, "foo");
ast_msg_set_context(msg, TEST_CONTEXT);
- ast_msg_set_exten(msg, NULL);
+ ast_msg_set_exten(msg, "%s", "");
ast_test_validate(test, ast_msg_has_destination(msg) == 1);
if (!ast_msg_send(msg, "testmsg:foo", "blah")) {