diff options
author | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2013-11-25 15:01:59 +0000 |
---|---|---|
committer | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2013-11-25 15:01:59 +0000 |
commit | d52ba34e7b21ffdaf27f2d101bf5eb9c2b6139f6 (patch) | |
tree | b4ca2b6d5ade127a83b5abff4ee7bbe727c54519 /sys/dev/drm2 | |
parent | 9e684a3a797341edca72fa72cd91577f17212195 (diff) | |
download | src-d52ba34e7b21ffdaf27f2d101bf5eb9c2b6139f6.tar.gz src-d52ba34e7b21ffdaf27f2d101bf5eb9c2b6139f6.zip |
drm: Fix build with gcc, broken with r258549
The code was easier to read without __DECONST and clang didn't report
any error. I thought the cast was enough...
MFC after: 3 days
X-MFC-With: r258549
Notes
Notes:
svn path=/head/; revision=258553
Diffstat (limited to 'sys/dev/drm2')
-rw-r--r-- | sys/dev/drm2/drm_linux_list_sort.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/drm2/drm_linux_list_sort.c b/sys/dev/drm2/drm_linux_list_sort.c index ae4cd64385cf..19c5c9ecc8ed 100644 --- a/sys/dev/drm2/drm_linux_list_sort.c +++ b/sys/dev/drm2/drm_linux_list_sort.c @@ -42,8 +42,8 @@ drm_le_cmp(void *priv, const void *d1, const void *d2) struct drm_list_sort_thunk *thunk; thunk = priv; - le1 = *(struct list_head **)d1; - le2 = *(struct list_head **)d2; + le1 = *(__DECONST(struct list_head **, d1)); + le2 = *(__DECONST(struct list_head **, d2)); return ((thunk->cmp)(thunk->priv, le1, le2)); } |