[Midnightbsd-cvs] src [9460] trunk/sbin/tunefs/tunefs.c: Constify string pointers.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Mar 5 14:37:44 EST 2017


Revision: 9460
          http://svnweb.midnightbsd.org/src/?rev=9460
Author:   laffer1
Date:     2017-03-05 14:37:44 -0500 (Sun, 05 Mar 2017)
Log Message:
-----------
Constify string pointers.

Modified Paths:
--------------
    trunk/sbin/tunefs/tunefs.c

Modified: trunk/sbin/tunefs/tunefs.c
===================================================================
--- trunk/sbin/tunefs/tunefs.c	2017-03-05 19:37:20 UTC (rev 9459)
+++ trunk/sbin/tunefs/tunefs.c	2017-03-05 19:37:44 UTC (rev 9460)
@@ -82,8 +82,8 @@
 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 @@
 }
 
 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 Midnightbsd-cvs mailing list