Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/lib/libsa Make libsa fsmod string pointer const.



details:   https://anonhg.NetBSD.org/src/rev/dec543777ad7
branches:  trunk
changeset: 325775:dec543777ad7
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sun Jan 05 21:38:25 2014 +0000

description:
Make libsa fsmod string pointer const.

diffstat:

 sys/lib/libsa/globals.c |  4 ++--
 sys/lib/libsa/stand.h   |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r c68f00be0ac8 -r dec543777ad7 sys/lib/libsa/globals.c
--- a/sys/lib/libsa/globals.c   Sun Jan 05 21:36:50 2014 +0000
+++ b/sys/lib/libsa/globals.c   Sun Jan 05 21:38:25 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: globals.c,v 1.9 2012/05/21 21:34:16 dsl Exp $  */
+/*     $NetBSD: globals.c,v 1.10 2014/01/05 21:38:25 jakllsch Exp $    */
 
 /*
  *     globals.c:
@@ -19,7 +19,7 @@
 char   rootpath[FNAME_SIZE];           /* root mount path */
 char   bootfile[FNAME_SIZE];           /* bootp says to boot this */
 char   hostname[FNAME_SIZE];           /* our hostname */
-char   *fsmod = NULL;                  /*  file system module name to load */
+const char     *fsmod = NULL;          /* file system module name to load */
 struct in_addr myip;                   /* my ip address */
 struct in_addr rootip;                 /* root ip address */
 struct in_addr gateip;                 /* swap ip address */
diff -r c68f00be0ac8 -r dec543777ad7 sys/lib/libsa/stand.h
--- a/sys/lib/libsa/stand.h     Sun Jan 05 21:36:50 2014 +0000
+++ b/sys/lib/libsa/stand.h     Sun Jan 05 21:38:25 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stand.h,v 1.76 2012/05/21 21:34:16 dsl Exp $   */
+/*     $NetBSD: stand.h,v 1.77 2014/01/05 21:38:25 jakllsch Exp $      */
 
 /*
  * Copyright (c) 1999 Christopher G. Demetriou.  All rights reserved.
@@ -110,7 +110,7 @@
  * This structure is used to define file system operations in a file system
  * independent way.
  */
-extern char *fsmod;
+extern const char *fsmod;
 
 #if !defined(LIBSA_SINGLE_FILESYSTEM)
 struct fs_ops {



Home | Main Index | Thread Index | Old Index