summaryrefslogtreecommitdiffstats
path: root/sys/contrib
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-02-10 07:35:16 +0000
committerdim <dim@FreeBSD.org>2015-02-10 07:35:16 +0000
commitf35a53399fc49c336886f35bbd0df9204d9ef884 (patch)
tree47b644d0a6e9122e896c790705810bed5822cb1f /sys/contrib
parentf8ff07ebef14d8d87007863c4b3bfcf35f6b515f (diff)
downloadFreeBSD-src-f35a53399fc49c336886f35bbd0df9204d9ef884.zip
FreeBSD-src-f35a53399fc49c336886f35bbd0df9204d9ef884.tar.gz
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
Diffstat (limited to 'sys/contrib')
-rw-r--r--sys/contrib/dev/ath/ath_hal/ar9300/ar9300.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/contrib/dev/ath/ath_hal/ar9300/ar9300.h b/sys/contrib/dev/ath/ath_hal/ar9300/ar9300.h
index 73b902f..00f3384 100644
--- a/sys/contrib/dev/ath/ath_hal/ar9300/ar9300.h
+++ b/sys/contrib/dev/ath/ath_hal/ar9300/ar9300.h
@@ -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)
OpenPOWER on IntegriCloud