]> granicus.if.org Git - graphviz/commitdiff
PriorityQueue: don't include deprecated malloc.h
authorHenrik Grimler <henrik@grimler.se>
Mon, 27 Apr 2020 06:24:34 +0000 (08:24 +0200)
committerHenrik Grimler <henrik@grimler.se>
Mon, 27 Apr 2020 06:24:34 +0000 (08:24 +0200)
We could guard it with `#ifdef HAVE_MALLOC_H` but it is not necessary in any
case, stdlib.h (and possibly malloc.h), are already included by memory.h which
PriorityQueue.c includes.

Should fix https://gitlab.com/graphviz/graphviz/-/issues/1696

lib/sfdpgen/PriorityQueue.c

index 1c4c7072f5b3510ae9f480f68407c2c89cbdda10..5ff20af8c8df0da5ee70e6d954af33abc1349a6d 100644 (file)
@@ -11,8 +11,6 @@
  * Contributors: See CVS logs. Details at http://www.graphviz.org/
  *************************************************************************/
 
-#include <malloc.h>
-
 #include "LinkedList.h"
 #include "PriorityQueue.h"
 #include "memory.h"