Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jan 2017 09:09:46 +0000 (UTC)
From:      Andrew Rybchenko <arybchik@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r311060 - stable/10/sys/dev/sfxge/common
Message-ID:  <201701020909.v0299khg091942@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arybchik
Date: Mon Jan  2 09:09:46 2017
New Revision: 311060
URL: https://svnweb.freebsd.org/changeset/base/311060

Log:
  MFC r310691
  
  sfxge(4): make strings array pointer itself immutable
  
  Found by DPDK checkpatches.sh
  
  Sponsored by:   Solarflare Communications, Inc.

Modified:
  stable/10/sys/dev/sfxge/common/efx_mon.c
  stable/10/sys/dev/sfxge/common/efx_port.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/sfxge/common/efx_mon.c
==============================================================================
--- stable/10/sys/dev/sfxge/common/efx_mon.c	Mon Jan  2 09:09:05 2017	(r311059)
+++ stable/10/sys/dev/sfxge/common/efx_mon.c	Mon Jan  2 09:09:46 2017	(r311060)
@@ -40,7 +40,7 @@ __FBSDID("$FreeBSD$");
 
 #if EFSYS_OPT_NAMES
 
-static const char	*__efx_mon_name[] = {
+static const char * const __efx_mon_name[] = {
 	"",
 	"sfx90x0",
 	"sfx91x0",

Modified: stable/10/sys/dev/sfxge/common/efx_port.c
==============================================================================
--- stable/10/sys/dev/sfxge/common/efx_port.c	Mon Jan  2 09:09:05 2017	(r311059)
+++ stable/10/sys/dev/sfxge/common/efx_port.c	Mon Jan  2 09:09:46 2017	(r311060)
@@ -172,7 +172,7 @@ fail1:
 
 #if EFSYS_OPT_NAMES
 
-static const char 	*__efx_loopback_type_name[] = {
+static const char * const __efx_loopback_type_name[] = {
 	"OFF",
 	"DATA",
 	"GMAC",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701020909.v0299khg091942>