Author: arybchik
Date: Wed Dec 28 11:09:45 2016
New Revision: 310691
URL: https://svnweb.freebsd.org/changeset/base/310691

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

Modified:
  head/sys/dev/sfxge/common/efx_mon.c
  head/sys/dev/sfxge/common/efx_port.c

Modified: head/sys/dev/sfxge/common/efx_mon.c
==============================================================================
--- head/sys/dev/sfxge/common/efx_mon.c Wed Dec 28 11:07:34 2016        
(r310690)
+++ head/sys/dev/sfxge/common/efx_mon.c Wed Dec 28 11:09:45 2016        
(r310691)
@@ -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: head/sys/dev/sfxge/common/efx_port.c
==============================================================================
--- head/sys/dev/sfxge/common/efx_port.c        Wed Dec 28 11:07:34 2016        
(r310690)
+++ head/sys/dev/sfxge/common/efx_port.c        Wed Dec 28 11:09:45 2016        
(r310691)
@@ -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",
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to