From e0d02fc9f49e3b77f5181d425d0e63046ed4b9c2 Mon Sep 17 00:00:00 2001 From: ellson Date: Thu, 23 Oct 2008 01:49:26 +0000 Subject: [PATCH] replace "(char*)0" with "NULL" --- lib/neatogen/constraint.c | 2 +- lib/twopigen/circle.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/neatogen/constraint.c b/lib/neatogen/constraint.c index d796458f3..b7998b29a 100644 --- a/lib/neatogen/constraint.c +++ b/lib/neatogen/constraint.c @@ -264,7 +264,7 @@ static graph_t *mkNConstraintG(graph_t * g, Dt_t * list, #ifndef WITH_CGRAPH if (e && agfindedge(g,p->np, nxp->np)) { #else /* WITH_CGRAPH */ - if (e && agedge(g,p->np, nxp->np, (char*)0, 0)) { + if (e && agedge(g,p->np, nxp->np, NULL, 0)) { #endif /* WITH_CGRAPH */ ED_weight(e) = 100; } diff --git a/lib/twopigen/circle.c b/lib/twopigen/circle.c index 382f68f40..8bf26e354 100644 --- a/lib/twopigen/circle.c +++ b/lib/twopigen/circle.c @@ -261,7 +261,7 @@ static void setAbsolutePos(Agraph_t * g) #ifndef WITH_CGRAPH p = late_string(g, agfindattr(g->root, "ranksep"), NULL); #else /* WITH_CGRAPH */ - p = late_string(g, agattr(g->root,AGRAPH, "ranksep",(char*)0), NULL); + p = late_string(g, agattr(g->root,AGRAPH, "ranksep", NULL), NULL); #endif /* WITH_CGRAPH */ if (p) { if (sscanf(p, "%lf", &xf) == 0) -- 2.40.0