ext4_utils: Add support for >2G input files
Change-Id: I6af69d676610099d3912e90fcab3cbdc27ace4e2
diff --git a/ext4_utils/ext4_utils.c b/ext4_utils/ext4_utils.c
index 82d1116..1551633 100644
--- a/ext4_utils/ext4_utils.c
+++ b/ext4_utils/ext4_utils.c
@@ -14,6 +14,14 @@
* limitations under the License.
*/
+#include "ext4_utils.h"
+#include "output_file.h"
+#include "backed_block.h"
+#include "uuid.h"
+#include "allocate.h"
+#include "indirect.h"
+#include "extent.h"
+
#include <fcntl.h>
#include <arpa/inet.h>
#include <sys/ioctl.h>
@@ -27,14 +35,6 @@
#include <sys/disk.h>
#endif
-#include "ext4_utils.h"
-#include "output_file.h"
-#include "backed_block.h"
-#include "uuid.h"
-#include "allocate.h"
-#include "indirect.h"
-#include "extent.h"
-
#include "ext4.h"
#include "jbd2.h"
@@ -78,7 +78,6 @@
{
int ret = 0;
struct output_file *out = open_output_file(filename, gz, sparse);
- off_t off;
if (!out)
return;