X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=blobdiff_plain;f=tid%2Ftid_req.c;h=a1a7a5a46502fa6e2585af11975a8cc5b20233e4;hp=159451d80c3378461a2988e0de6d282e9b9e9bad;hb=39c2dec6054da6fb692b40f6b5ac374795b17092;hpb=b46df3e23c665ef124fc06417a4d8dadd382a251 diff --git a/tid/tid_req.c b/tid/tid_req.c index 159451d..a1a7a5a 100644 --- a/tid/tid_req.c +++ b/tid/tid_req.c @@ -38,6 +38,8 @@ #include #include +#include + #include static int destroy_tid_req(TID_REQ *req) @@ -177,7 +179,7 @@ TID_REQ *tid_dup_req (TID_REQ *orig_req) TID_REQ *new_req = NULL; if (NULL == (new_req = malloc(sizeof(TID_REQ)))) { - fprintf(stderr, "tid_dup_req: Can't allocated duplicate request.\n"); + tr_crit("tid_dup_req: Can't allocated duplicate request."); return NULL; } @@ -188,12 +190,12 @@ TID_REQ *tid_dup_req (TID_REQ *orig_req) if ((NULL == (new_req->rp_realm = tr_dup_name(orig_req->rp_realm))) || (NULL == (new_req->realm = tr_dup_name(orig_req->realm))) || (NULL == (new_req->comm = tr_dup_name(orig_req->comm)))) { - fprintf(stderr, "tid_dup_req: Can't duplicate request (names).\n"); + tr_crit("tid_dup_req: Can't duplicate request (names)."); } if (orig_req->orig_coi) { if (NULL == (new_req->orig_coi = tr_dup_name(orig_req->orig_coi))) { - fprintf(stderr, "tid_dup_req: Can't duplicate request (orig_coi).\n"); + tr_crit("tid_dup_req: Can't duplicate request (orig_coi)."); } }