gfio: cleanup includes
authorJens Axboe <axboe@kernel.dk>
Mon, 23 Jul 2018 14:29:14 +0000 (08:29 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Jul 2018 14:29:14 +0000 (08:29 -0600)
Use stdlib.h, not malloc.h. And ensure that we pull in the
right header for basename(3).

Signed-off-by: Jens Axboe <axboe@kernel.dk>
gfio.c

diff --git a/gfio.c b/gfio.c
index d222a1c..f59238c 100644 (file)
--- a/gfio.c
+++ b/gfio.c
@@ -22,8 +22,9 @@
  *
  */
 #include <locale.h>
-#include <malloc.h>
+#include <stdlib.h>
 #include <string.h>
+#include <libgen.h>
 
 #include <glib.h>
 #include <cairo.h>