X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dccf1b41e9c7b5a696f01abceaa2779fe65f154f..8579400ae5e0389b237a2b52e9ea62bebbe1f4d9:/examples/smpi/NAS/DGraph.c diff --git a/examples/smpi/NAS/DGraph.c b/examples/smpi/NAS/DGraph.c index 530bf3ee94..ad4f682106 100644 --- a/examples/smpi/NAS/DGraph.c +++ b/examples/smpi/NAS/DGraph.c @@ -37,7 +37,7 @@ void nodeShow(DGNode* nd){ /* if(nd->verified==1) fprintf(stderr,"%ld.%s\t: usable.",nd->id,nd->name); else if(nd->verified==0) fprintf(stderr,"%ld.%s\t: unusable.",nd->id,nd->name); - else fprintf(stderr,"%ld.%s\t: notverified.",nd->id,nd->name); + else fprintf(stderr,"%ld.%s\t: notverified.",nd->id,nd->name); */ } @@ -83,7 +83,7 @@ int AttachNode(DGraph* dg, DGNode* nd) { } memcpy( &(tmpnd->inArc[ tmpnd->inDegree]), nd->inArc, nd->inDegree*sizeof( DGArc *)); tmpnd->inDegree += nd->inDegree; - } + } if ( nd->outDegree > 0 ) { tmpnd->maxOutDegree += nd->maxOutDegree; ar =(DGArc **) calloc(tmpnd->maxOutDegree,sizeof(DGArc*)); @@ -96,7 +96,7 @@ int AttachNode(DGraph* dg, DGNode* nd) { memcpy( &(tmpnd->outArc[tmpnd->outDegree]),nd->outArc,nd->outDegree*sizeof( DGArc *)); tmpnd->outDegree += nd->outDegree; } - free(nd); + free(nd); return i; } nd->id = dg->numNodes;