X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=common%2Ftests%2Fcommtest.c;fp=common%2Ftests%2Fcommtest.c;h=34153cb2ac27edb4a25c752a9001db07f96b91d6;hb=d125c7deb88aa6c8a8ae97f9ea611575aba050ec;hp=9c9c008a1bb4264fe9aa8dbcf806767491f9b455;hpb=9a2c6b21be6f81cbe1589a92afdabc1a2f259c58;p=trust_router.git diff --git a/common/tests/commtest.c b/common/tests/commtest.c index 9c9c008..34153cb 100644 --- a/common/tests/commtest.c +++ b/common/tests/commtest.c @@ -70,7 +70,7 @@ static int add_comm_set(TR_COMM_TABLE *ctab, struct comm_entry *entries) for (this=entries,ii=0; this->id!=NULL; this++, ii++) { new=comm_entry_to_comm(tmp_ctx, this); if (new==NULL) { - printf("Error creating community %d.\n", ii+1); + printf("Error creating community %u.\n", (unsigned int)ii+1); rc=1; goto cleanup; } @@ -273,7 +273,7 @@ static TR_IDP_REALM *idp_realm_entry_to_idp_realm(TALLOC_CTX *mem_ctx, struct id realm=NULL; /* still in tmp_ctx so will be freed */ else { tr_idp_realm_set_apcs(realm, apc_entry_to_apc(tmp_ctx, re->apcs)); - if (tr_idp_realm_get_apcs==NULL) + if (tr_idp_realm_get_apcs(realm)==NULL) realm=NULL; } } @@ -818,6 +818,7 @@ static int membership_test(void) assert(0==tr_comm_table_size(ctab)); talloc_free(mem_ctx); + return 0; }