[asterisk-commits] twilson: branch 1.8 r323866 - /branches/1.8/tests/test_db.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jun 15 15:04:04 CDT 2011
Author: twilson
Date: Wed Jun 15 15:03:58 2011
New Revision: 323866
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=323866
Log:
Remove now-useless cast of ARRAY_LEN
Modified:
branches/1.8/tests/test_db.c
Modified: branches/1.8/tests/test_db.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/tests/test_db.c?view=diff&rev=323866&r1=323865&r2=323866
==============================================================================
--- branches/1.8/tests/test_db.c (original)
+++ branches/1.8/tests/test_db.c Wed Jun 15 15:03:58 2011
@@ -158,7 +158,7 @@
}
if (x != ARRAY_LEN(inputs)) {
- ast_test_status_update(test, "ast_db_gettree returned %zu entries when we expected %zu\n", x, (size_t) ARRAY_LEN(inputs));
+ ast_test_status_update(test, "ast_db_gettree returned %zu entries when we expected %zu\n", x, ARRAY_LEN(inputs));
res = AST_TEST_FAIL;
}
@@ -186,19 +186,19 @@
}
if (x != (ARRAY_LEN(inputs) / 2)) {
- ast_test_status_update(test, "ast_db_gettree returned %zu entries when we expected %zu\n", x, (size_t) ARRAY_LEN(inputs) / 2);
+ ast_test_status_update(test, "ast_db_gettree returned %zu entries when we expected %zu\n", x, ARRAY_LEN(inputs) / 2);
res = AST_TEST_FAIL;
}
ast_db_freetree(dbes);
if ((num_deleted = ast_db_deltree(BASE, SUB2)) != ARRAY_LEN(inputs) / 2) {
- ast_test_status_update(test, "Failed to deltree %s/%s, expected %zu deletions and got %d\n", BASE, SUB2, (size_t) ARRAY_LEN(inputs) / 2, num_deleted);
+ ast_test_status_update(test, "Failed to deltree %s/%s, expected %zu deletions and got %d\n", BASE, SUB2, ARRAY_LEN(inputs) / 2, num_deleted);
res = AST_TEST_FAIL;
}
if ((num_deleted = ast_db_deltree(BASE, NULL)) != ARRAY_LEN(inputs) / 2) {
- ast_test_status_update(test, "Failed to deltree %s, expected %zu deletions and got %d\n", BASE, (size_t) ARRAY_LEN(inputs) / 2, num_deleted);
+ ast_test_status_update(test, "Failed to deltree %s, expected %zu deletions and got %d\n", BASE, ARRAY_LEN(inputs) / 2, num_deleted);
res = AST_TEST_FAIL;
}
More information about the asterisk-commits
mailing list