summaryrefslogtreecommitdiff
path: root/sbin/tunefs
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2013-09-05 20:18:59 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2013-09-05 20:18:59 +0000
commitd1d015864103b253b3fcb2f72a0da5b0cfeb31b6 (patch)
tree22b131dceb13c3df96da594fbaadb693504797c7 /sbin/tunefs
parent12d4083451fc39b3e831d4ea0bfa67d3b32cfb54 (diff)
parentb6f49c23a36f329cbf1e7f28078e17fd87f0e245 (diff)
downloadsrc-test2-d1d015864103b253b3fcb2f72a0da5b0cfeb31b6.tar.gz
src-test2-d1d015864103b253b3fcb2f72a0da5b0cfeb31b6.zip
Notes
Diffstat (limited to 'sbin/tunefs')
-rw-r--r--sbin/tunefs/tunefs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c
index 0671d1de5896..15c6cf075bca 100644
--- a/sbin/tunefs/tunefs.c
+++ b/sbin/tunefs/tunefs.c
@@ -84,8 +84,8 @@ static void sbdirty(void);
int
main(int argc, char *argv[])
{
- char *avalue, *jvalue, *Jvalue, *Lvalue, *lvalue, *Nvalue, *nvalue;
- char *tvalue;
+ const char *avalue, *jvalue, *Jvalue, *Lvalue, *lvalue, *Nvalue, *nvalue;
+ const char *tvalue;
const char *special, *on;
const char *name;
int active;
@@ -174,7 +174,7 @@ main(int argc, char *argv[])
found_arg = 1;
name = "space to hold for metadata blocks";
kvalue = atoi(optarg);
- if (mvalue < 0)
+ if (kvalue < 0)
errx(10, "bad %s (%s)", name, optarg);
kflag = 1;
break;
@@ -711,7 +711,7 @@ journal_findfile(void)
}
static void
-dir_clear_block(char *block, off_t off)
+dir_clear_block(const char *block, off_t off)
{
struct direct *dp;