Avoid void * arithmetic

This commit is contained in:
christos 2016-03-07 00:51:32 +00:00
parent 8dcf2fd159
commit 3eda01ea39
1 changed files with 3 additions and 3 deletions

View File

@ -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 @@ rump_vop_setattr(void *v)
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);