ChangeLog, test_icount.c, test_icount.h:

test_icount.h (do_dump, do_validate): Add prototypes to fix -Wall
  	warnings.
  test_icount.c: Fix -Wall warnings.
ChangeLog, extent.c, main.c:
  extent.c (extent_cmp): Add const to cast to prevent -Wall warning.
  main.c (check_mount): Rename function argument to prevent -Wall
  	warning.
bitmap-optimize
Theodore Ts'o 1998-03-30 01:08:41 +00:00
parent 4c27e6dd1b
commit 2a3013b807
6 changed files with 24 additions and 7 deletions

View File

@ -1,3 +1,10 @@
1998-03-29 Theodore Ts'o <tytso@rsts-11.mit.edu>
* extent.c (extent_cmp): Add const to cast to prevent -Wall warning.
* main.c (check_mount): Rename function argument to prevent -Wall
warning.
1998-03-24 Theodore Ts'o <tytso@rsts-11.mit.edu>
* main.c (main): Check to make sure we can really resize this

View File

@ -124,8 +124,8 @@ static int extent_cmp(const void *a, const void *b)
const struct ext2_extent_entry *db_a;
const struct ext2_extent_entry *db_b;
db_a = (struct ext2_extent_entry *) a;
db_b = (struct ext2_extent_entry *) b;
db_a = (const struct ext2_extent_entry *) a;
db_b = (const struct ext2_extent_entry *) b;
return (db_a->old_loc - db_b->old_loc);
}

View File

@ -79,23 +79,23 @@ static errcode_t resize_progress_func(ext2_resize_t rfs, int pass,
return 0;
}
static void check_mount(char *device_name)
static void check_mount(char *device)
{
errcode_t retval;
int mount_flags;
retval = ext2fs_check_if_mounted(device_name, &mount_flags);
retval = ext2fs_check_if_mounted(device, &mount_flags);
if (retval) {
com_err("ext2fs_check_if_mount", retval,
"while determining whether %s is mounted.",
device_name);
device);
return;
}
if (!(mount_flags & EXT2_MF_MOUNTED))
return;
fprintf(stderr, "%s is mounted; can't resize a "
"mounted filesystem!\n\n", device_name);
"mounted filesystem!\n\n", device);
exit(1);
}

View File

@ -1,3 +1,10 @@
1998-03-29 Theodore Ts'o <tytso@rsts-11.mit.edu>
* test_icount.h (do_dump, do_validate): Add prototypes to fix
-Wall warnings.
* test_icount.c: Fix -Wall warnings.
Sat Oct 25 18:50:33 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Makefile.in (PROGS): Remove test_rel from the test programs that

View File

@ -240,7 +240,7 @@ void do_get_size(int argc, char **argv)
if (check_icount(argv[0]))
return;
size = ext2fs_get_icount_size(test_icount);
printf("Size of icount is: %u\n", size);
printf("Size of icount is: %lu\n", size);
}
static int source_file(const char *cmd_file, int sci_idx)

View File

@ -5,3 +5,6 @@ void do_increment(int argc, char **argv);
void do_decrement(int argc, char **argv);
void do_store(int argc, char **argv);
void do_get_size(int argc, char **argv);
void do_dump(int argc, char **argv);
void do_validate(int argc, char **argv);