svn commit: r250718 - head/sbin/tunefs
Xin LI
delphij at FreeBSD.org
Thu May 16 21:04:57 UTC 2013
Author: delphij
Date: Thu May 16 21:04:56 2013
New Revision: 250718
URL: http://svnweb.freebsd.org/changeset/base/250718
Log:
Constify string pointers.
Verified with: sha256(1)
MFC after: 2 weeks
Modified:
head/sbin/tunefs/tunefs.c
Modified: head/sbin/tunefs/tunefs.c
==============================================================================
--- head/sbin/tunefs/tunefs.c Thu May 16 20:55:20 2013 (r250717)
+++ head/sbin/tunefs/tunefs.c Thu May 16 21:04:56 2013 (r250718)
@@ -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;
More information about the svn-src-all
mailing list