summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-10-07 13:27:04 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-10-07 13:27:04 +0200
commit3b47afacf5d6443b3460cd979abfff6c71a4ec3d (patch)
treeda66604611c937c0498eb167b9506b54d7df437e
parenta68eb730558fb90bc8d9524564d8f9e58f3ccac1 (diff)
Fix spelling of "align"
Before the misspelled version has a chance to become stable API. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--include/sqfs/block.h4
-rw-r--r--include/sqfs/data_writer.h6
-rw-r--r--include/sqfs/meta_reader.h2
-rw-r--r--include/sqfs/meta_writer.h2
-rw-r--r--lib/sqfs/data_writer/block.c8
5 files changed, 11 insertions, 11 deletions
diff --git a/include/sqfs/block.h b/include/sqfs/block.h
index 7ee3bcb..b37cdd5 100644
--- a/include/sqfs/block.h
+++ b/include/sqfs/block.h
@@ -73,12 +73,12 @@ typedef enum {
SQFS_BLK_DONT_COMPRESS = 0x0001,
/**
- * @brief Allign the block on disk to device block size.
+ * @brief Align the block on disk to device block size.
*
* If set, the @ref sqfs_data_writer_t will add padding before the
* first block of the affected file and after the last block.
*/
- SQFS_BLK_ALLIGN = 0x0002,
+ SQFS_BLK_ALIGN = 0x0002,
/**
* @brief Don't add the tail end of a file to a fragment block.
diff --git a/include/sqfs/data_writer.h b/include/sqfs/data_writer.h
index 4623493..7b6ee0f 100644
--- a/include/sqfs/data_writer.h
+++ b/include/sqfs/data_writer.h
@@ -74,7 +74,7 @@ struct sqfs_block_hooks_t {
* @brief Gets called before writing a block to disk.
*
* If this is not NULL, it gets called before a block is written to
- * disk. If the block has the @ref SQFS_BLK_ALLIGN flag set, the
+ * disk. If the block has the @ref SQFS_BLK_ALIGN flag set, the
* function is called before padding the file.
*
* The function may modify the block itself or write data to the file.
@@ -91,7 +91,7 @@ struct sqfs_block_hooks_t {
* @brief Gets called after writing a block to disk.
*
* If this is not NULL, it gets called after a block is written to
- * disk. If the block has the @ref SQFS_BLK_ALLIGN flag set, the
+ * disk. If the block has the @ref SQFS_BLK_ALIGN flag set, the
* function is called before padding the file.
*
* Modifying the block is rather pointless, but the function may
@@ -167,7 +167,7 @@ extern "C" {
* trying to add more, enqueueing blocks until the in-flight
* block count drops below the threshold.
* @param devblksz File can optionally be allgined to device block size. This
- * specifies the desired allignment.
+ * specifies the desired alignment.
* @param file The output file to write the finished blocks to.
*
* @return A pointer to a data writer object on success, NULL on allocation
diff --git a/include/sqfs/meta_reader.h b/include/sqfs/meta_reader.h
index e720006..e2203de 100644
--- a/include/sqfs/meta_reader.h
+++ b/include/sqfs/meta_reader.h
@@ -37,7 +37,7 @@
* that are written to disk with a small header indicating the on-disk
* size and whether it is compressed or not.
*
- * Data written to meta data blocks doesn't have to be alligned, i.e.
+ * Data written to meta data blocks doesn't have to be aligned, i.e.
* SquashFS doesn't care if an object is written across two blocks.
*
* The main task of the meta data read is to provide a simple read and seek
diff --git a/include/sqfs/meta_writer.h b/include/sqfs/meta_writer.h
index 8425e94..21842fb 100644
--- a/include/sqfs/meta_writer.h
+++ b/include/sqfs/meta_writer.h
@@ -38,7 +38,7 @@
* that are written to disk with a small header indicating the on-disk
* size and whether it is compressed or not.
*
- * Data written to meta data blocks doesn't have to be alligned, i.e.
+ * Data written to meta data blocks doesn't have to be aligned, i.e.
* SquashFS doesn't care if an object is written across two blocks.
*
* The main task of the meta data writer is to provide a simple append
diff --git a/lib/sqfs/data_writer/block.c b/lib/sqfs/data_writer/block.c
index 01e1387..13c62a2 100644
--- a/lib/sqfs/data_writer/block.c
+++ b/lib/sqfs/data_writer/block.c
@@ -50,7 +50,7 @@ static size_t deduplicate_blocks(sqfs_data_writer_t *proc, size_t count)
return i;
}
-static int allign_file(sqfs_data_writer_t *proc, sqfs_block_t *blk)
+static int align_file(sqfs_data_writer_t *proc, sqfs_block_t *blk)
{
sqfs_u32 chksum;
void *padding;
@@ -58,7 +58,7 @@ static int allign_file(sqfs_data_writer_t *proc, sqfs_block_t *blk)
size_t diff;
int ret;
- if (!(blk->flags & SQFS_BLK_ALLIGN))
+ if (!(blk->flags & SQFS_BLK_ALIGN))
return 0;
size = proc->file->get_size(proc->file);
@@ -98,7 +98,7 @@ int process_completed_block(sqfs_data_writer_t *proc, sqfs_block_t *blk)
proc->start = proc->file->get_size(proc->file);
proc->file_start = proc->num_blocks;
- err = allign_file(proc, blk);
+ err = align_file(proc, blk);
if (err)
return err;
}
@@ -134,7 +134,7 @@ int process_completed_block(sqfs_data_writer_t *proc, sqfs_block_t *blk)
}
if (blk->flags & SQFS_BLK_LAST_BLOCK) {
- err = allign_file(proc, blk);
+ err = align_file(proc, blk);
if (err)
return err;