From bbfa3aa990ba29de563d30598f9bf515be26026c Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sat, 21 Mar 1998 07:12:46 +0000 Subject: [PATCH] ChangeLog, mke2fs.c: Fixed spelling typo in warning message. Fixed up -Wall warnings in file. Many files: Update latest version of the build files for resize2fs. --- misc/ChangeLog | 5 +++++ misc/mke2fs.c | 9 +++++++-- resize/{resize2fs-1.12.spec => resize2fs.spec} | 2 +- resize/version.h | 11 +++++++++++ 4 files changed, 24 insertions(+), 3 deletions(-) rename resize/{resize2fs-1.12.spec => resize2fs.spec} (98%) create mode 100644 resize/version.h diff --git a/misc/ChangeLog b/misc/ChangeLog index 83b99c7..2b55314 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,3 +1,8 @@ +1998-03-21 Theodore Ts'o + + * mke2fs.c (check_plausibility): Fixed spelling typo in warning + message. Fixed up -Wall warnings in file. + Sun Mar 8 22:21:48 1998 Theodore Ts'o * partinfo.c (main): The ioctl BLKGETSIZE requires a long, not an diff --git a/misc/mke2fs.c b/misc/mke2fs.c index b00e385..2a2f428 100644 --- a/misc/mke2fs.c +++ b/misc/mke2fs.c @@ -53,6 +53,9 @@ #include "ext2fs/ext2fs.h" #include "../version.h" +/* Everything is STDC, these days */ +#define NOARGS void + #define STRIDE_LENGTH 8 #ifndef sparc @@ -79,6 +82,8 @@ char *creator_os = NULL; char *volume_label = NULL; char *mount_dir = NULL; +static void usage(NOARGS), check_plausibility(NOARGS), check_mount(NOARGS); + static void usage(NOARGS) { fprintf(stderr, "Usage: %s [-c|-t|-l filename] [-b block-size] " @@ -116,7 +121,7 @@ static void check_plausibility(NOARGS) error_message(errno)); if (errno == ENOENT) printf("\nThe device apparently does not exist; " - "did yo specify it correctly?\n"); + "did you specify it correctly?\n"); exit(1); } if(!S_ISBLK(s.st_mode)) { @@ -796,7 +801,7 @@ static void PRS(int argc, char *argv[]) #ifdef EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER if ((sparse_option == 1) #ifdef EXT2_DYNAMIC_REV - || (param.s_rev_level >= EXT2_DYNAMIC_REV) && (!sparse_option) + || ((param.s_rev_level >= EXT2_DYNAMIC_REV) && (!sparse_option)) #endif ) param_ext2->s_feature_ro_compat |= diff --git a/resize/resize2fs-1.12.spec b/resize/resize2fs.spec similarity index 98% rename from resize/resize2fs-1.12.spec rename to resize/resize2fs.spec index 3893e97..b047340 100644 --- a/resize/resize2fs-1.12.spec +++ b/resize/resize2fs.spec @@ -1,6 +1,6 @@ Summary: ext2 filesystem resizer Name: resize2fs -Version: 1.00 +Version: 1.01 Release: 0 Vendor: PowerQuest Copyright: Licensed to Registered Users of Partition Magic(tm) diff --git a/resize/version.h b/resize/version.h new file mode 100644 index 0000000..cd5bdb4 --- /dev/null +++ b/resize/version.h @@ -0,0 +1,11 @@ +/* + * version.h --- controls the version number printed by the resize2fs + * program. + * + * Copyright 1995, 1996, 1997, 1998 by Theodore Ts'o. This file may + * be redistributed under the GNU Public License. + */ + +#define E2FSPROGS_VERSION "1.01" +#define E2FSPROGS_DATE "20-Mar-98" + -- 1.8.3.1