summaryrefslogtreecommitdiff
path: root/misc/mke2fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/mke2fs.c')
-rw-r--r--misc/mke2fs.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/misc/mke2fs.c b/misc/mke2fs.c
index b00e3859..2a2f428b 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 |=