diff options
author | Jim Meyering <meyering@fb.com> | 2014-05-25 21:16:44 -0700 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2014-05-28 08:43:04 -0700 |
commit | 591c7f6f39fff9126d7aa05c24e95961a91fd27f (patch) | |
tree | 375fd17c3e5964639a674c41ae9ec3a04cc927a0 /libparted/fs | |
parent | 2b59e3264fc517c432b926968eba8b85d5df788d (diff) | |
download | parted-591c7f6f39fff9126d7aa05c24e95961a91fd27f.tar.gz |
maint: fix "make syntax-check" nits
* doc/parted.texi: Update copyright year to 2014.
* tests/gpt-header-move.py: Remove empty line at EOF.
* tests/t0281-gpt-grow.sh: Correct reversed args to compare.
* tests/t0282-gpt-move-backup.sh: Likewise.
* libparted/labels/gpt.c (gpt_partition_set_name): Change "Can not"
to "failed to" in diagnostic.
(gpt_partition_get_name): Likewise.
* tests/t1102-loop-label.sh (dev): Remove trailing space in
here document that creates expected output, and strip that
same trailing space from actual output.
* libparted/fs/jfs/jfs.c: Do not cast alloca return value.
* libparted/fs/reiserfs/reiserfs.c: Likewise.
* libparted/fs/xfs/xfs.c: Likewise.
Diffstat (limited to 'libparted/fs')
-rw-r--r-- | libparted/fs/jfs/jfs.c | 2 | ||||
-rw-r--r-- | libparted/fs/reiserfs/reiserfs.c | 3 | ||||
-rw-r--r-- | libparted/fs/xfs/xfs.c | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/libparted/fs/jfs/jfs.c b/libparted/fs/jfs/jfs.c index 5f0336c..47b2f07 100644 --- a/libparted/fs/jfs/jfs.c +++ b/libparted/fs/jfs/jfs.c @@ -37,7 +37,7 @@ static PedGeometry* jfs_probe (PedGeometry* geom) { - struct superblock *sb = (struct superblock *)alloca (geom->dev->sector_size); + struct superblock *sb = alloca (geom->dev->sector_size); if (geom->length * geom->dev->sector_size < JFS_SUPER_OFFSET) return NULL; diff --git a/libparted/fs/reiserfs/reiserfs.c b/libparted/fs/reiserfs/reiserfs.c index 892cb8a..2efcdf3 100644 --- a/libparted/fs/reiserfs/reiserfs.c +++ b/libparted/fs/reiserfs/reiserfs.c @@ -57,8 +57,7 @@ static PedGeometry *reiserfs_probe(PedGeometry *geom) int i; PED_ASSERT(geom != NULL); - reiserfs_super_block_t *sb = - (reiserfs_super_block_t *)alloca (geom->dev->sector_size); + reiserfs_super_block_t *sb = alloca (geom->dev->sector_size); for (i = 0; reiserfs_super_offset[i] != -1; i++) { if (reiserfs_super_offset[i] >= geom->length) diff --git a/libparted/fs/xfs/xfs.c b/libparted/fs/xfs/xfs.c index 3fc97db..e4314a8 100644 --- a/libparted/fs/xfs/xfs.c +++ b/libparted/fs/xfs/xfs.c @@ -38,7 +38,7 @@ xfs_probe (PedGeometry* geom) { PedSector block_size; PedSector block_count; - struct xfs_sb *sb = (struct xfs_sb *)alloca (geom->dev->sector_size); + struct xfs_sb *sb = alloca (geom->dev->sector_size); if (geom->length < XFS_SB_DADDR + 1) return NULL; |