From: ellson Date: Thu, 23 Oct 2008 01:49:26 +0000 (+0000) Subject: replace "(char*)0" with "NULL" X-Git-Tag: LAST_LIBGRAPH~32^2~3008 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d758eb47e41421da1a97aca673c606990f5adf5;p=graphviz replace "(char*)0" with "NULL" --- diff --git a/lib/circogen/circular.c b/lib/circogen/circular.c index 322c4b439..3191f0b1d 100644 --- a/lib/circogen/circular.c +++ b/lib/circogen/circular.c @@ -45,15 +45,15 @@ static void initGraphAttrs(Agraph_t * g, circ_state * state) #ifndef WITH_CGRAPH G_mindist = agfindattr(rootg, "mindist"); #else /* WITH_CGRAPH */ - G_mindist = agattr(rootg,AGRAPH, "mindist",(char*)0); + G_mindist = agattr(rootg,AGRAPH, "mindist", NULL); #endif /* WITH_CGRAPH */ min_dist = late_double(rootg, G_mindist, MINDIST, 0.0); #ifndef WITH_CGRAPH N_artpos = agfindattr(rootg->proto->n, "articulation_pos"); N_root = agfindattr(rootg->proto->n, "root"); #else /* WITH_CGRAPH */ - N_artpos = agattr(rootg,AGNODE, "articulation_pos",(char*)0); - N_root = agattr(rootg,AGNODE, "root",(char*)0); + N_artpos = agattr(rootg,AGNODE, "articulation_pos", NULL); + N_root = agattr(rootg,AGNODE, "root", NULL); #endif /* WITH_CGRAPH */ rootname = agget(rootg, "root"); }