Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Feb 2015 07:35:17 +0000 (UTC)
From:      Dimitry Andric <dim@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: r278496 - stable/10/sys/contrib/dev/ath/ath_hal/ar9300
Message-ID:  <201502100735.t1A7ZHhj035104@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Tue Feb 10 07:35:16 2015
New Revision: 278496
URL: https://svnweb.freebsd.org/changeset/base/278496

Log:
  MFC r278348:
  
  Fix a number of -Wcast-qual warnings in ath's ar9300_attach.c, by making
  the ia_array field of struct ar9300_ini_array const, and removing the
  const-dropping casts.  No functional change.
  
  Reviewed by:	adrian
  Differential Revision: https://reviews.freebsd.org/D1725

Modified:
  stable/10/sys/contrib/dev/ath/ath_hal/ar9300/ar9300.h
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/contrib/dev/ath/ath_hal/ar9300/ar9300.h
==============================================================================
--- stable/10/sys/contrib/dev/ath/ath_hal/ar9300/ar9300.h	Tue Feb 10 06:35:16 2015	(r278495)
+++ stable/10/sys/contrib/dev/ath/ath_hal/ar9300/ar9300.h	Tue Feb 10 07:35:16 2015	(r278496)
@@ -317,12 +317,12 @@ typedef struct {
 
 /* Support for multiple INIs */
 struct ar9300_ini_array {
-    u_int32_t *ia_array;
+    const u_int32_t *ia_array;
     u_int32_t ia_rows;
     u_int32_t ia_columns;
 };
 #define INIT_INI_ARRAY(iniarray, array, rows, columns) do {             \
-    (iniarray)->ia_array = (u_int32_t *)(array);    \
+    (iniarray)->ia_array = (const u_int32_t *)(array);    \
     (iniarray)->ia_rows = (rows);       \
     (iniarray)->ia_columns = (columns); \
 } while (0)



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