Avoid strict-alias warnings.

This commit is contained in:
thorpej 2002-12-06 04:06:13 +00:00
parent 6086842609
commit 452f3dd1ad
1 changed files with 2 additions and 2 deletions

View File

@ -260,12 +260,12 @@ isc_result_t name##_array_lookup (stype **, \
omapi_array_foreach_index++) { \ omapi_array_foreach_index++) { \
if ((array) -> data [omapi_array_foreach_index]) { \ if ((array) -> data [omapi_array_foreach_index]) { \
((*(array) -> ref) \ ((*(array) -> ref) \
((char **)&var, \ ((void *)&var, \
(array) -> data [omapi_array_foreach_index],\ (array) -> data [omapi_array_foreach_index],\
MDL)); MDL));
#define omapi_array_foreach_end(array, stype, var) \ #define omapi_array_foreach_end(array, stype, var) \
(*(array) -> deref) ((char **)&var, MDL); \ (*(array) -> deref) ((void *)&var, MDL); \
} \ } \
} \ } \
} }