From: Matthew Fernandez Date: Sun, 15 Aug 2021 19:09:04 +0000 (-0700) Subject: remove some use of open coded NULL when calling agattr X-Git-Tag: 2.49.0~15^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd11d4a192f4cf38305aac797c0db32fc7280a2f;p=graphviz remove some use of open coded NULL when calling agattr --- diff --git a/cmd/smyrna/gui/frmobjectui.c b/cmd/smyrna/gui/frmobjectui.c index 7a5a6c2b0..98d5b9e6f 100644 --- a/cmd/smyrna/gui/frmobjectui.c +++ b/cmd/smyrna/gui/frmobjectui.c @@ -504,7 +504,7 @@ static void doApply (GtkWidget * widget, int doAll) attr = binarySearch(view->Topview->attributes, attr_name); assert(attr); attr->propagate = prog; - sym = agattr(g, objKind, attr_name, (char *) 0); + sym = agattr(g, objKind, attr_name, NULL); if (!sym) /*it shouldnt be null, just in case it is null */ sym = agattr(g, objKind, attr_name, def_val); /*graph */ diff --git a/lib/dotgen/sameport.c b/lib/dotgen/sameport.c index 281fff8ce..396422a1b 100644 --- a/lib/dotgen/sameport.c +++ b/lib/dotgen/sameport.c @@ -15,7 +15,7 @@ #include #include - +#include #define MAXSAME 5 /* max no of same{head,tail} groups on a node */ @@ -41,8 +41,8 @@ void dot_sameports(graph_t * g) int n_sametail; /* number of same_t groups on current node */ int i; - E_samehead = agattr(g, AGEDGE, "samehead",(char*)0); - E_sametail = agattr(g, AGEDGE, "sametail",(char*)0); + E_samehead = agattr(g, AGEDGE, "samehead", NULL); + E_sametail = agattr(g, AGEDGE, "sametail", NULL); if (!(E_samehead || E_sametail)) return; for (n = agfstnode(g); n; n = agnxtnode(g, n)) {