]> granicus.if.org Git - graphviz/commit
Remove 1 -Wbad-function-cast warning in agdelsubg
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Fri, 28 Aug 2020 07:25:39 +0000 (09:25 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Mon, 7 Sep 2020 13:42:17 +0000 (15:42 +0200)
commit0a3b51a228c6b6a15df9fd0bcc35fdb1af61d3df
tree3252d921aa0fb38cf30eeee33953ad9bb2b439c5
parente0ff8c636d284aa736eafc92c7e74f4b0f9c0bdd
Remove 1 -Wbad-function-cast warning in agdelsubg

Restores the public API to what's documented in cgraph.3 by instead of
casting the void pointer that dtdelete returns to long, returns an int
which is 0 if the pointer is NULL and 1 otherwise. Internally the
return value is however not used today.
lib/cgraph/cgraph.h
lib/cgraph/subg.c