X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=blobdiff_plain;f=common%2Ftests%2Ffilt_test.c;fp=common%2Ftests%2Ffilt_test.c;h=342c27b80d934bf5a73fc3f5f865e255597cd7c2;hp=d7dfe064ccc66f3eba9d65227372c1dce9c2f17e;hb=6f65c9cce86719147d0b4dcc9823b25443c2d185;hpb=eaa1a8ceed54fbfadc2638cf383aaa12ab446a57 diff --git a/common/tests/filt_test.c b/common/tests/filt_test.c index d7dfe06..342c27b 100644 --- a/common/tests/filt_test.c +++ b/common/tests/filt_test.c @@ -119,7 +119,7 @@ TRP_INFOREC *load_inforec(const char *fname) json_decref(decoded); assert(encoded); - assert(msg=tr_msg_decode(encoded, strlen(encoded))); + assert(msg= tr_msg_decode(NULL, encoded, strlen(encoded))); assert(upd=tr_msg_get_trp_upd(msg)); assert(inforec=trp_upd_get_inforec(upd)); /* now remove the inforec from the update context */ @@ -146,7 +146,7 @@ TID_REQ *load_tid_req(const char *fname) msglen=fread(msgbuf, 1, MAX_FILE_SIZE, f); assert(msglen); assert(feof(f)); - msg=tr_msg_decode(msgbuf, msglen); + msg= tr_msg_decode(NULL, msgbuf, msglen); free(msgbuf); msgbuf=NULL;