diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2014-03-14 09:43:11 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2014-03-14 09:53:19 -0400 |
commit | 8a6cc1aebd7e9b2e6d6624fa1f8539888da25fe4 (patch) | |
tree | 93f09af8dfa0fdb3154f42f772aa381295e64de2 /util | |
parent | b052dc1c8db93c32dea57f8b84b33367bac31b5b (diff) | |
download | android_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.c | 3 |
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> |