From 4055ef7301ddf93120eb174f3473be15ce5a658b Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sun, 14 Jan 2001 16:11:14 +0000 Subject: [PATCH] ChangeLog, tune2fs.c: tune2fs.c (add_journal): Minor fixes from Andreas Dilger. Flush stdout after printing in-progress message. (main): Exit with status code 1 if we failed to determine the mount status of the device. ChangeLog, gcc-wall-cleanup: gcc-wall-cleanup: Remove additional annoying warning messages emited by gcc 2.95.2. ChangeLog, uuid.h: uuid: Change arguments to make it clear which argument is the source and which is the destination. --- lib/uuid/ChangeLog | 5 +++-- lib/uuid/uuid.h | 2 +- misc/ChangeLog | 7 +++++++ misc/tune2fs.c | 3 ++- util/ChangeLog | 5 +++++ util/gcc-wall-cleanup | 2 ++ 6 files changed, 20 insertions(+), 4 deletions(-) diff --git a/lib/uuid/ChangeLog b/lib/uuid/ChangeLog index ac5255e..94fcb9a 100644 --- a/lib/uuid/ChangeLog +++ b/lib/uuid/ChangeLog @@ -2,8 +2,9 @@ * uuid_time.c (main), tst_uuid.c (main): Fix gcc -Wall complaints. - * copy.c (uuid_copy): Change arguments to make it clear which - argument is the source and which is the destination. + * uuid.h, copy.c (uuid_copy): Change arguments to make it + clear which argument is the source and which is the + destination. * gen_uuid.c (get_random_fd): Use gettimeofday to seed the PRNG, so we can take advantage of tv_usec to do (slightly) diff --git a/lib/uuid/uuid.h b/lib/uuid/uuid.h index 785f586..0e974d8 100644 --- a/lib/uuid/uuid.h +++ b/lib/uuid/uuid.h @@ -28,7 +28,7 @@ void uuid_clear(uuid_t uu); int uuid_compare(uuid_t uu1, uuid_t uu2); /* copy.c */ -void uuid_copy(uuid_t uu1, uuid_t uu2); +void uuid_copy(uuid_t dst, uuid_t src); /* gen_uuid.c */ void uuid_generate(uuid_t out); diff --git a/misc/ChangeLog b/misc/ChangeLog index 8047211..ee599c4 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,3 +1,10 @@ +2001-01-14 Theodore Ts'o + + * tune2fs.c (add_journal): Minor fixes from Andreas Dilger. Flush + stdout after printing in-progress message. + (main): Exit with status code 1 if we failed to determine + the mount status of the device. + 2001-01-11 * e2image.c, mke2fs.c, mklost+found.c, tune2fs.c, util.c, diff --git a/misc/tune2fs.c b/misc/tune2fs.c index a28b3e4..e439511 100644 --- a/misc/tune2fs.c +++ b/misc/tune2fs.c @@ -205,6 +205,7 @@ static void add_journal(ext2_filsys fs) check_mount(journal_device, 0, _("journal")); printf(_("Creating journal on device %s: "), journal_device); + fflush(stdout); retval = ext2fs_add_journal_device(fs, journal_device, journal_blocks, journal_flags); @@ -494,7 +495,7 @@ int main (int argc, char ** argv) com_err("ext2fs_check_if_mount", retval, _("while determining whether %s is mounted."), device_name); - exit(0); + exit(1); } /* Normally we only need to write out the superblock */ fs->flags |= EXT2_FLAG_SUPER_ONLY; diff --git a/util/ChangeLog b/util/ChangeLog index 0b49825..9ffa0a9 100644 --- a/util/ChangeLog +++ b/util/ChangeLog @@ -1,3 +1,8 @@ +2001-01-14 Theodore Ts'o + + * gcc-wall-cleanup: Remove additional annoying warning messages + emited by gcc 2.95.2. + 2001-01-11 * gcc-wall-cleanup: New file which is used to clean up unnecessary diff --git a/util/gcc-wall-cleanup b/util/gcc-wall-cleanup index 1e556ea..4d817b1 100644 --- a/util/gcc-wall-cleanup +++ b/util/gcc-wall-cleanup @@ -7,7 +7,9 @@ /^gcc /d /does not support `long long'/d /does not support the `ll' length modifier/d +/ANSI C forbids long long integer constants/d /traditional C rejects string concatenation/d +/integer constant is unsigned in ANSI C, signed with -traditional/d /At top level:/d /In file included from/d /In function `.*':/d -- 1.8.3.1