]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nbft: Add stdlib.h include
authorDaniel Wagner <dwagner@suse.de>
Thu, 25 May 2023 17:51:29 +0000 (19:51 +0200)
committerDaniel Wagner <wagi@monom.org>
Thu, 25 May 2023 17:57:03 +0000 (19:57 +0200)
calloc() and free() are defined in stdlib.h, thus include the
definition.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
nbft.c

diff --git a/nbft.c b/nbft.c
index b0f8a41830e26f1de9ca6235d441e66b9fc29b82..2b516977e1d39a78a143a43ce8384a3bf6d1041a 100644 (file)
--- a/nbft.c
+++ b/nbft.c
@@ -3,6 +3,7 @@
 #include <errno.h>
 #include <stdio.h>
 #include <fnmatch.h>
+#include <stdlib.h>
 
 #include "nvme.h"
 #include "nbft.h"