Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpvfs Avoid void * arithmetic
details: https://anonhg.NetBSD.org/src/rev/bcb0de8a41ef
branches: trunk
changeset: 343959:bcb0de8a41ef
user: christos <christos%NetBSD.org@localhost>
date: Mon Mar 07 00:51:32 2016 +0000
description:
Avoid void * arithmetic
diffstat:
sys/rump/librump/rumpvfs/rumpfs.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 24bfd9cef491 -r bcb0de8a41ef sys/rump/librump/rumpvfs/rumpfs.c
--- a/sys/rump/librump/rumpvfs/rumpfs.c Mon Mar 07 00:28:36 2016 +0000
+++ b/sys/rump/librump/rumpvfs/rumpfs.c Mon Mar 07 00:51:32 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpfs.c,v 1.139 2016/03/06 19:47:41 christos Exp $ */
+/* $NetBSD: rumpfs.c,v 1.140 2016/03/07 00:51:32 christos Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.139 2016/03/06 19:47:41 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.140 2016/03/07 00:51:32 christos Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -934,7 +934,7 @@
copylen = MIN(rn->rn_dlen, newlen);
memcpy(newdata, rn->rn_data, copylen);
- memset(newdata + copylen, 0, newlen - copylen);
+ memset((char *)newdata + copylen, 0, newlen - copylen);
if ((rn->rn_flags & RUMPNODE_EXTSTORAGE) == 0) {
rump_hyperfree(rn->rn_data, rn->rn_dlen);
Home |
Main Index |
Thread Index |
Old Index