X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ec16845133f5f1b5262d2d77d8ba22824fa8a446..3eef4e948ebd9b1d8c9d26a6dedd535109856554:/src/xbt/dict.c diff --git a/src/xbt/dict.c b/src/xbt/dict.c index 19dd281fb1..5bf48fabb0 100644 --- a/src/xbt/dict.c +++ b/src/xbt/dict.c @@ -989,7 +989,7 @@ static void count_check_get_key(xbt_dict_t dict, int length) xbt_dict_foreach(dict, cursor, key, data) { effective++; key2 = xbt_dict_get_key(dict, data); - xbt_assert2(!strcmp(key, key2), + xbt_assert(!strcmp(key, key2), "The data was registered under %s instead of %s as expected", key2, key); } @@ -1248,7 +1248,7 @@ static int countelems(xbt_dict_t head) XBT_TEST_UNIT("crash", test_dict_crash, "Crash test") { xbt_dict_t head = NULL; - int i, j, k, nb; + int i, j, k; char *key; void *data; @@ -1263,7 +1263,6 @@ XBT_TEST_UNIT("crash", test_dict_crash, "Crash test") SIZEOFKEY); head = xbt_dict_new(); /* if (i%10) printf("."); else printf("%d",i/10); fflush(stdout); */ - nb = 0; for (j = 0; j < 1000; j++) { char *data = NULL; key = xbt_malloc(SIZEOFKEY);