[asterisk-commits] twilson: trunk r323867 - in /trunk: ./ tests/test_db.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jun 15 15:05:01 CDT 2011


Author: twilson
Date: Wed Jun 15 15:04:55 2011
New Revision: 323867

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=323867
Log:
Merged revisions 323866 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r323866 | twilson | 2011-06-15 15:03:58 -0500 (Wed, 15 Jun 2011) | 2 lines
  
  Remove now-useless cast of ARRAY_LEN
........

Modified:
    trunk/   (props changed)
    trunk/tests/test_db.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: trunk/tests/test_db.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_db.c?view=diff&rev=323867&r1=323866&r2=323867
==============================================================================
--- trunk/tests/test_db.c (original)
+++ trunk/tests/test_db.c Wed Jun 15 15:04:55 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