summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2013-05-16 21:04:56 +0000
committerdelphij <delphij@FreeBSD.org>2013-05-16 21:04:56 +0000
commit1d06cba9f7ba5d8236e7e8617cd610b6b303e631 (patch)
tree441a4341dbe4d7409775d121a83e6159b8c05ddf /sbin
parent78727b1b3d73a43a80d58a2bcb5ad4739f0a1d5d (diff)
downloadFreeBSD-src-1d06cba9f7ba5d8236e7e8617cd610b6b303e631.zip
FreeBSD-src-1d06cba9f7ba5d8236e7e8617cd610b6b303e631.tar.gz
Constify string pointers.
Verified with: sha256(1) MFC after: 2 weeks
Diffstat (limited to 'sbin')
-rw-r--r--sbin/tunefs/tunefs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c
index 2ad01c0..15c6cf0 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;
@@ -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;
OpenPOWER on IntegriCloud