summaryrefslogtreecommitdiff
path: root/misc/e2image.c
diff options
context:
space:
mode:
authorAndreas Dilger <adilger@whamcloud.com>2011-06-15 22:17:38 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-06-15 22:17:38 -0400
commit96367ad3bc849220651b20f41340b48e07e82b04 (patch)
tree7a3d0934c69f3f75cf79b95ce7cdb9457b66f2e0 /misc/e2image.c
parentdb7cb4b4a6c50527c764e11c12b6caf4f207d46b (diff)
downloade2fsprogs-96367ad3bc849220651b20f41340b48e07e82b04.tar.gz
misc: quiet "unused variable" compiler warnings
Some of the newly-merged patches added "unused variable" compiler warnings. Delete unused variables. Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'misc/e2image.c')
-rw-r--r--misc/e2image.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/misc/e2image.c b/misc/e2image.c
index 3f91f64f..83a9d025 100644
--- a/misc/e2image.c
+++ b/misc/e2image.c
@@ -92,7 +92,6 @@ static void generic_write(int fd, void *buf, int blocksize, blk64_t block)
{
int count, free_buf = 0;
errcode_t err;
- blk64_t offset;
if (!blocksize)
return;
@@ -128,7 +127,7 @@ static void generic_write(int fd, void *buf, int blocksize, blk64_t block)
static void write_header(int fd, void *hdr, int hdr_size, int wrt_size)
{
char *header_buf;
- int actual, ret;
+ int ret;
/* Sanity check */
if (hdr_size > wrt_size) {
@@ -712,8 +711,6 @@ static int initialize_qcow2_image(int fd, ext2_filsys fs,
static void free_qcow2_image(struct ext2_qcow2_image *img)
{
- unsigned int i;
-
if (!img)
return;
@@ -910,14 +907,10 @@ static int sync_refcount(int fd, struct ext2_qcow2_image *img)
static void output_qcow2_meta_data_blocks(ext2_filsys fs, int fd)
{
errcode_t retval;
- blk64_t blk, datablk, offset, size, actual, end;
+ blk64_t blk, offset, size, end;
char *buf;
- int sparse = 0;
struct ext2_qcow2_image *img;
- unsigned int header_size, i;
- blk64_t l1_index, l2_offset, l2_index;
- char *buffer;
- __u64 *l2_table;
+ unsigned int header_size;
/* allocate struct ext2_qcow2_image */
retval = ext2fs_get_mem(sizeof(struct ext2_qcow2_image), &img);