svn commit: r247239 - projects/virtio/sys/dev/virtio

Bryan Venteicher bryanv at FreeBSD.org
Sun Feb 24 21:22:16 UTC 2013


Author: bryanv
Date: Sun Feb 24 21:22:15 2013
New Revision: 247239
URL: http://svnweb.freebsd.org/changeset/base/247239

Log:
  virtio: Constify some fields
  
  Obtained from:	DragonflyBSD
  Approved by:	grehan (implicit)

Modified:
  projects/virtio/sys/dev/virtio/virtio.c
  projects/virtio/sys/dev/virtio/virtio.h

Modified: projects/virtio/sys/dev/virtio/virtio.c
==============================================================================
--- projects/virtio/sys/dev/virtio/virtio.c	Sun Feb 24 21:20:57 2013	(r247238)
+++ projects/virtio/sys/dev/virtio/virtio.c	Sun Feb 24 21:22:15 2013	(r247239)
@@ -48,8 +48,8 @@ static int virtio_modevent(module_t, int
 static const char *virtio_feature_name(uint64_t, struct virtio_feature_desc *);
 
 static struct virtio_ident {
-	uint16_t devid;
-	char	*name;
+	uint16_t	devid;
+	const char	*name;
 } virtio_ident_table[] = {
 	{ VIRTIO_ID_NETWORK,	"Network"	},
 	{ VIRTIO_ID_BLOCK,	"Block"		},

Modified: projects/virtio/sys/dev/virtio/virtio.h
==============================================================================
--- projects/virtio/sys/dev/virtio/virtio.h	Sun Feb 24 21:20:57 2013	(r247238)
+++ projects/virtio/sys/dev/virtio/virtio.h	Sun Feb 24 21:22:15 2013	(r247239)
@@ -94,7 +94,7 @@ struct vq_alloc_info;
 
 struct virtio_feature_desc {
 	uint64_t	 vfd_val;
-	char		*vfd_str;
+	const char	*vfd_str;
 };
 
 const char *virtio_device_name(uint16_t devid);


More information about the svn-src-projects mailing list