X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=blobdiff_plain;f=trp%2Ftest%2Frtbl_test.c;fp=trp%2Ftest%2Frtbl_test.c;h=e651941adfef9b0a3e04efb67fdd7c12390ae818;hp=0ec1ec03dc8d231760c9d5e3f5aa35852b7039f2;hb=6f65c9cce86719147d0b4dcc9823b25443c2d185;hpb=eaa1a8ceed54fbfadc2638cf383aaa12ab446a57 diff --git a/trp/test/rtbl_test.c b/trp/test/rtbl_test.c index 0ec1ec0..e651941 100644 --- a/trp/test/rtbl_test.c +++ b/trp/test/rtbl_test.c @@ -38,6 +38,7 @@ #include #include +#include #include #include @@ -243,7 +244,7 @@ static void update_metric(TRP_RTABLE *table, unsigned int (*new_metric)(size_t, TRP_ROUTE **entries=NULL; size_t n=0, ii=0,jj=0,kk=0; - entries=trp_rtable_get_entries(table, &n); + entries= trp_rtable_get_entries(NULL, table, &n); while (n--) { ii=get_index(trp_route_get_comm(entries[n])->buf, apc, n_apc); jj=get_index(trp_route_get_realm(entries[n])->buf, realm, n_realm);