Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm const for cast before read.
details: https://anonhg.NetBSD.org/src/rev/04709745c452
branches: trunk
changeset: 1027824:04709745c452
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 00:49:51 2021 +0000
description:
const for cast before read.
diffstat:
sys/external/bsd/drm2/dist/drm/drm_blend.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r d067d5316c3a -r 04709745c452 sys/external/bsd/drm2/dist/drm/drm_blend.c
--- a/sys/external/bsd/drm2/dist/drm/drm_blend.c Sun Dec 19 00:49:43 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_blend.c Sun Dec 19 00:49:51 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_blend.c,v 1.2 2021/12/18 23:44:57 riastradh Exp $ */
+/* $NetBSD: drm_blend.c,v 1.3 2021/12/19 00:49:51 riastradh Exp $ */
/*
* Copyright (C) 2016 Samsung Electronics Co.Ltd
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_blend.c,v 1.2 2021/12/18 23:44:57 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_blend.c,v 1.3 2021/12/19 00:49:51 riastradh Exp $");
#include <linux/export.h>
#include <linux/slab.h>
@@ -420,8 +420,8 @@
static int drm_atomic_state_zpos_cmp(const void *a, const void *b)
{
- const struct drm_plane_state *sa = *(struct drm_plane_state **)a;
- const struct drm_plane_state *sb = *(struct drm_plane_state **)b;
+ const struct drm_plane_state *sa = *(struct drm_plane_state *const *)a;
+ const struct drm_plane_state *sb = *(struct drm_plane_state *const *)b;
if (sa->zpos != sb->zpos)
return sa->zpos - sb->zpos;
Home |
Main Index |
Thread Index |
Old Index