svn commit: r253902 - head/sys/dev/scc

Marius Strobl marius at FreeBSD.org
Fri Aug 2 23:31:52 UTC 2013


Author: marius
Date: Fri Aug  2 23:31:51 2013
New Revision: 253902
URL: http://svnweb.freebsd.org/changeset/base/253902

Log:
  Const'ify scc_driver_name.

Modified:
  head/sys/dev/scc/scc_bfe.h
  head/sys/dev/scc/scc_core.c

Modified: head/sys/dev/scc/scc_bfe.h
==============================================================================
--- head/sys/dev/scc/scc_bfe.h	Fri Aug  2 23:31:28 2013	(r253901)
+++ head/sys/dev/scc/scc_bfe.h	Fri Aug  2 23:31:51 2013	(r253902)
@@ -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: head/sys/dev/scc/scc_core.c
==============================================================================
--- head/sys/dev/scc/scc_core.c	Fri Aug  2 23:31:28 2013	(r253901)
+++ head/sys/dev/scc/scc_core.c	Fri Aug  2 23:31:51 2013	(r253902)
@@ -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-head mailing list