svn commit: r232349 - stable/9/sys/cam/ctl

Dimitry Andric dim at FreeBSD.org
Thu Mar 1 17:54:08 UTC 2012


Author: dim
Date: Thu Mar  1 17:54:07 2012
New Revision: 232349
URL: http://svn.freebsd.org/changeset/base/232349

Log:
  MFC r232074:
  
  Use a better way to silence unneeded internal declaration warnings in
  several sys/cam/ctl files.
  
  Suggested by:	ed
  Reviewed by:	ken

Modified:
  stable/9/sys/cam/ctl/ctl_private.h
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/cam/ctl/ctl_private.h
==============================================================================
--- stable/9/sys/cam/ctl/ctl_private.h	Thu Mar  1 17:51:15 2012	(r232348)
+++ stable/9/sys/cam/ctl/ctl_private.h	Thu Mar  1 17:54:07 2012	(r232349)
@@ -297,7 +297,7 @@ struct ctl_page_index {
 #define	CTL_PAGE_DEFAULT	0x02
 #define	CTL_PAGE_SAVED		0x03
 
-static struct ctl_page_index page_index_template[] = {
+static const struct ctl_page_index page_index_template[] = {
 	{SMS_FORMAT_DEVICE_PAGE, 0, sizeof(struct scsi_format_page), NULL,
 	 CTL_PAGE_FLAG_DISK_ONLY, NULL, NULL},
 	{SMS_RIGID_DISK_PAGE, 0, sizeof(struct scsi_rigid_disk_page), NULL,


More information about the svn-src-all mailing list