[PATCH 4/4] common/drive.c: include stdlib.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We are using calloc() inside of this file, but it is not included in any
way (resultin in "implicit declaration" warnings from the compiler). So,
add the include.

Signed-off-by: Jan Tulak <jtulak@xxxxxxxxxx>
---
 common/drive.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/drive.c b/common/drive.c
index 4b0825f..edb63c0 100644
--- a/common/drive.c
+++ b/common/drive.c
@@ -17,6 +17,7 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <sys/stat.h>
 #include <time.h>
-- 
2.19.1




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux