summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-09-22 16:36:39 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-09-22 17:28:12 +0200
commit4fcd0bfd141f0f371cf5a1c4ab580234e6bd6ba7 (patch)
tree0b550918dbe5d6e81e1f855d036c4dce1bddae04
parentb8653470b9a5934a7632e5cd1fa519646f389cc7 (diff)
downloadgenimage-4fcd0bfd141f0f371cf5a1c4ab580234e6bd6ba7.tar.gz
genimage-4fcd0bfd141f0f371cf5a1c4ab580234e6bd6ba7.tar.xz
use tabs instead of spaces
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--image-hd.c2
-rw-r--r--util.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/image-hd.c b/image-hd.c
index fcb05d3..863f40a 100644
--- a/image-hd.c
+++ b/image-hd.c
@@ -447,7 +447,7 @@ static int hdimage_setup(struct image *image, cfg_t *cfg)
++partition_table_entries;
}
if (!hd->gpt && !hd->extended_partition && partition_table_entries > 4)
- hd->extended_partition = 4;
+ hd->extended_partition = 4;
has_extended = hd->extended_partition > 0;
if (hd->disk_uuid ) {
diff --git a/util.c b/util.c
index f66827f..709d427 100644
--- a/util.c
+++ b/util.c
@@ -514,8 +514,8 @@ fill:
ret = ftruncate(outf, image->last_offset);
if (ret == -1) {
image_error(image, "ftruncate %s: %s\n", outfile, strerror(errno));
- goto err_out;
- }
+ goto err_out;
+ }
}
else {
memset(buf, fillpattern, 4096);