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 Do arithmetic on char *, not ...



details:   https://anonhg.NetBSD.org/src/rev/2206b2129e02
branches:  trunk
changeset: 1027902:2206b2129e02
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:14:22 2021 +0000

description:
Do arithmetic on char *, not on void *.

diffstat:

 sys/external/bsd/drm2/dist/drm/drm_property.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 407d5332d288 -r 2206b2129e02 sys/external/bsd/drm2/dist/drm/drm_property.c
--- a/sys/external/bsd/drm2/dist/drm/drm_property.c     Sun Dec 19 01:14:14 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_property.c     Sun Dec 19 01:14:22 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_property.c,v 1.2 2021/12/18 23:44:57 riastradh Exp $       */
+/*     $NetBSD: drm_property.c,v 1.3 2021/12/19 01:14:22 riastradh Exp $       */
 
 /*
  * Copyright (c) 2016 Intel Corporation
@@ -23,7 +23,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_property.c,v 1.2 2021/12/18 23:44:57 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_property.c,v 1.3 2021/12/19 01:14:22 riastradh Exp $");
 
 #include <linux/export.h>
 #include <linux/uaccess.h>
@@ -576,7 +576,7 @@
        /* This must be explicitly initialised, so we can safely call list_del
         * on it in the removal handler, even if it isn't in a file list. */
        INIT_LIST_HEAD(&blob->head_file);
-       blob->data = (void *)blob + sizeof(*blob);
+       blob->data = (char *)blob + sizeof(*blob);
        blob->length = length;
        blob->dev = dev;
 



Home | Main Index | Thread Index | Old Index