aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2014-03-14 09:43:11 -0400
committerTheodore Ts'o <tytso@mit.edu>2014-03-14 09:53:19 -0400
commit8a6cc1aebd7e9b2e6d6624fa1f8539888da25fe4 (patch)
tree93f09af8dfa0fdb3154f42f772aa381295e64de2 /util
parentb052dc1c8db93c32dea57f8b84b33367bac31b5b (diff)
downloadandroid_external_e2fsprogs-8a6cc1aebd7e9b2e6d6624fa1f8539888da25fe4.tar.gz
android_external_e2fsprogs-8a6cc1aebd7e9b2e6d6624fa1f8539888da25fe4.tar.bz2
android_external_e2fsprogs-8a6cc1aebd7e9b2e6d6624fa1f8539888da25fe4.zip
misc: fix header complaints and resource leaks in e2fsprogs
Fix a few minor bugs that cppcheck complained about. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'util')
-rw-r--r--util/subst.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/subst.c b/util/subst.c
index 2ea16d9b..32d52932 100644
--- a/util/subst.c
+++ b/util/subst.c
@@ -17,6 +17,9 @@
#include <fcntl.h>
#include <time.h>
#include <utime.h>
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
#ifdef HAVE_GETOPT_H
#include <getopt.h>