Module Name: src
Committed By: jakllsch
Date: Sun Jan 5 21:38:25 UTC 2014
Modified Files:
src/sys/lib/libsa: globals.c stand.h
Log Message:
Make libsa fsmod string pointer const.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/lib/libsa/globals.c
cvs rdiff -u -r1.76 -r1.77 src/sys/lib/libsa/stand.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/lib/libsa/globals.c
diff -u src/sys/lib/libsa/globals.c:1.9 src/sys/lib/libsa/globals.c:1.10
--- src/sys/lib/libsa/globals.c:1.9 Mon May 21 21:34:16 2012
+++ src/sys/lib/libsa/globals.c Sun Jan 5 21:38:25 2014
@@ -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 @@ u_char bcea[6] = BA; /* broadcast ethe
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 */
Index: src/sys/lib/libsa/stand.h
diff -u src/sys/lib/libsa/stand.h:1.76 src/sys/lib/libsa/stand.h:1.77
--- src/sys/lib/libsa/stand.h:1.76 Mon May 21 21:34:16 2012
+++ src/sys/lib/libsa/stand.h Sun Jan 5 21:38:25 2014
@@ -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 @@ struct open_file;
* 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 {