[asterisk-commits] mmichelson: branch group/dns r432554 - /team/group/dns/tests/test_dns.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Mar 6 14:50:19 CST 2015
Author: mmichelson
Date: Fri Mar 6 14:50:16 2015
New Revision: 432554
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=432554
Log:
Remove trailing whitespace.
Modified:
team/group/dns/tests/test_dns.c
Modified: team/group/dns/tests/test_dns.c
URL: http://svnview.digium.com/svn/asterisk/team/group/dns/tests/test_dns.c?view=diff&rev=432554&r1=432553&r2=432554
==============================================================================
--- team/group/dns/tests/test_dns.c (original)
+++ team/group/dns/tests/test_dns.c Fri Mar 6 14:50:16 2015
@@ -289,7 +289,7 @@
{
struct ast_dns_query some_query;
struct ast_dns_result *result;
-
+
struct dns_result {
unsigned int secure;
unsigned int bogus;
@@ -518,7 +518,7 @@
if (res) {
return AST_TEST_FAIL;
}
-
+
++num_records_visited;
}
@@ -584,7 +584,7 @@
ast_test_status_update(test, "Successfully added DNS record with negative RR type\n");
return AST_TEST_FAIL;
}
-
+
if (!ast_dns_resolver_add_record(&some_query, ns_t_max + 1, ns_c_in, 12345, v4_buf, V4_BUFSIZE)) {
ast_test_status_update(test, "Successfully added DNS record with too large RR type\n");
return AST_TEST_FAIL;
@@ -673,7 +673,7 @@
}
}
ast_mutex_unlock(&test_resolver_data.lock);
-
+
if (test_resolver_data.canceled) {
ast_dns_resolver_completed(query);
ao2_ref(query, -1);
@@ -684,7 +684,7 @@
inet_pton(AF_INET, V4, v4_buf);
ast_dns_resolver_add_record(query, ns_t_a, ns_c_in, 12345, v4_buf, V4_BUFSIZE);
-
+
test_resolver_data.resolution_complete = 1;
ast_dns_resolver_completed(query);
@@ -870,7 +870,7 @@
{ "asterisk.org", ns_t_a, ns_c_max + 1, &result },
{ "asterisk.org", ns_t_a, ns_c_in, NULL },
};
-
+
int i;
enum ast_test_result_state res = AST_TEST_PASS;
@@ -1004,7 +1004,7 @@
AST_TEST_DEFINE(resolver_resolve_async)
{
- RAII_VAR(struct async_resolution_data *, async_data, NULL, ao2_cleanup);
+ RAII_VAR(struct async_resolution_data *, async_data, NULL, ao2_cleanup);
RAII_VAR(struct ast_dns_query *, query, NULL, ao2_cleanup);
struct ast_dns_result *result;
enum ast_test_result_state res = AST_TEST_PASS;
@@ -1079,7 +1079,7 @@
res = AST_TEST_FAIL;
goto cleanup;
}
-
+
result = ast_dns_query_get_result(query);
if (!result) {
ast_test_status_update(test, "Asynchronous resolution yielded no result\n");
@@ -1186,7 +1186,7 @@
AST_TEST_DEFINE(resolver_resolve_async_cancel)
{
- RAII_VAR(struct async_resolution_data *, async_data, NULL, ao2_cleanup);
+ RAII_VAR(struct async_resolution_data *, async_data, NULL, ao2_cleanup);
RAII_VAR(struct ast_dns_query *, query, NULL, ao2_cleanup);
struct ast_dns_result *result;
enum ast_test_result_state res = AST_TEST_PASS;
More information about the asterisk-commits
mailing list