Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/riastradh-drm2]: src/sys/external/bsd/drm2/dist/drm/i915 Fix const casts...



details:   https://anonhg.NetBSD.org/src/rev/5eab5fa0aaa8
branches:  riastradh-drm2
changeset: 788438:5eab5fa0aaa8
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 03:47:55 2013 +0000

description:
Fix const casts in intel_sdvo.c.

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/intel_sdvo.c |  8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diffs (27 lines):

diff -r 11a2001c737d -r 5eab5fa0aaa8 sys/external/bsd/drm2/dist/drm/i915/intel_sdvo.c
--- a/sys/external/bsd/drm2/dist/drm/i915/intel_sdvo.c  Wed Jul 24 03:47:39 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/intel_sdvo.c  Wed Jul 24 03:47:55 2013 +0000
@@ -419,7 +419,11 @@
        DRM_DEBUG_KMS("%s: W: %02X ",
                                SDVO_NAME(intel_sdvo), cmd);
        for (i = 0; i < args_len; i++)
+#ifdef __NetBSD__              /* XXX const */
+               DRM_LOG_KMS("%02X ", ((const u8 *)args)[i]);
+#else
                DRM_LOG_KMS("%02X ", ((u8 *)args)[i]);
+#endif
        for (; i < 8; i++)
                DRM_LOG_KMS("   ");
        for (i = 0; i < ARRAY_SIZE(sdvo_cmd_names); i++) {
@@ -469,7 +473,11 @@
                msgs[i].len = 2;
                msgs[i].buf = buf + 2 *i;
                buf[2*i + 0] = SDVO_I2C_ARG_0 - i;
+#ifdef __NetBSD__              /* XXX const */
+               buf[2*i + 1] = ((const u8*)args)[i];
+#else
                buf[2*i + 1] = ((u8*)args)[i];
+#endif
        }
        msgs[i].addr = intel_sdvo->slave_addr;
        msgs[i].flags = 0;



Home | Main Index | Thread Index | Old Index