svn commit: r254162 - stable/9/sys/dev/scc

Marius Strobl marius at FreeBSD.org
Fri Aug 9 21:04:01 UTC 2013


Author: marius
Date: Fri Aug  9 21:04:00 2013
New Revision: 254162
URL: http://svnweb.freebsd.org/changeset/base/254162

Log:
  MFC: r253902
  
  Const'ify scc_driver_name.

Modified:
  stable/9/sys/dev/scc/scc_bfe.h
  stable/9/sys/dev/scc/scc_core.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/scc/scc_bfe.h
==============================================================================
--- stable/9/sys/dev/scc/scc_bfe.h	Fri Aug  9 21:01:41 2013	(r254161)
+++ stable/9/sys/dev/scc/scc_bfe.h	Fri Aug  9 21:04:00 2013	(r254162)
@@ -136,7 +136,7 @@ struct scc_softc {
 };
 
 extern devclass_t scc_devclass;
-extern char scc_driver_name[];
+extern const char scc_driver_name[];
 
 int scc_bfe_attach(device_t dev, u_int ipc);
 int scc_bfe_detach(device_t dev);

Modified: stable/9/sys/dev/scc/scc_core.c
==============================================================================
--- stable/9/sys/dev/scc/scc_core.c	Fri Aug  9 21:01:41 2013	(r254161)
+++ stable/9/sys/dev/scc/scc_core.c	Fri Aug  9 21:04:00 2013	(r254162)
@@ -46,7 +46,7 @@ __FBSDID("$FreeBSD$");
 #include "scc_if.h"
 
 devclass_t scc_devclass;
-char scc_driver_name[] = "scc";
+const char scc_driver_name[] = "scc";
 
 static MALLOC_DEFINE(M_SCC, "SCC", "SCC driver");
 


More information about the svn-src-stable-9 mailing list