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 MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D1725
This commit is contained in:
parent
3f920f3f44
commit
772400696c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=278348
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user