aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Tulak <jtulak@redhat.com>2018-12-06 17:10:21 -0600
committerEric Sandeen <sandeen@redhat.com>2018-12-06 17:10:21 -0600
commit8866703074d4c01831a254c42c645afef8075b23 (patch)
tree55925c6aed578349d3c7aacd129620bd289bbdfd
parent6ff49bf7951e5951bd8f938fc3662c896a1bf9e8 (diff)
downloadxfsdump-dev-8866703074d4c01831a254c42c645afef8075b23.tar.gz
common/drive.c: include stdlib.h
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@redhat.com> Reviewed-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
-rw-r--r--common/drive.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/drive.c b/common/drive.c
index 4b0825f8..edb63c0b 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>