X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=blobdiff_plain;f=trp%2Fmsgtst.c;fp=trp%2Fmsgtst.c;h=7a6a58581de0c780503f2c861d6fa2f2ca2e194f;hp=da39570e47c5e0056c2efae62e6b8fe16e60ccc8;hb=6f65c9cce86719147d0b4dcc9823b25443c2d185;hpb=eaa1a8ceed54fbfadc2638cf383aaa12ab446a57 diff --git a/trp/msgtst.c b/trp/msgtst.c index da39570..7a6a585 100644 --- a/trp/msgtst.c +++ b/trp/msgtst.c @@ -81,14 +81,14 @@ int main(int argc, const char *argv[]) if (buflen>=MAX_MSG_LEN) printf("Warning: file may exceed maximum message length (%d bytes).\n", MAX_MSG_LEN); - msg=tr_msg_decode(buf, buflen); + msg= tr_msg_decode(NULL, buf, buflen); /* if (rc==TRP_SUCCESS) trp_msg_print(msg);*/ printf("\nEncoding...\n"); - printf("Result: \n%s\n\n", tr_msg_encode(msg)); + printf("Result: \n%s\n\n", tr_msg_encode(NULL, msg)); talloc_report_full(main_ctx, stdout);