svn commit: r251157 - stable/9/sbin/tunefs

Xin LI delphij at FreeBSD.org
Thu May 30 20:46:56 UTC 2013


Author: delphij
Date: Thu May 30 20:46:56 2013
New Revision: 251157
URL: http://svnweb.freebsd.org/changeset/base/251157

Log:
  MFC r250718:
  
  Constify string pointers.

Modified:
  stable/9/sbin/tunefs/tunefs.c
Directory Properties:
  stable/9/sbin/tunefs/   (props changed)

Modified: stable/9/sbin/tunefs/tunefs.c
==============================================================================
--- stable/9/sbin/tunefs/tunefs.c	Thu May 30 20:45:57 2013	(r251156)
+++ stable/9/sbin/tunefs/tunefs.c	Thu May 30 20:46:56 2013	(r251157)
@@ -82,8 +82,8 @@ 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;
@@ -712,7 +712,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-stable-9 mailing list