From: Keir Fraser Subject: Re: [PATCH][XEN] fix missing header and gcc warning Date: Mon, 14 Aug 2006 09:37:07 +0100 Message-ID: References: <87ac67akoc.fsf@pike.pond.sub.org> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <87ac67akoc.fsf@pike.pond.sub.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Markus Armbruster , Jimi Xenidis Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 14/8/06 7:36 am, "Markus Armbruster" wrote: >> - memcpy(dp + op->dest.offset, sp + op->source.offset, op->len); >> + memcpy((void *)((ulong)dp + op->dest.offset), >> + (void *)((ulong)sp + op->source.offset), >> + op->len); > > I find this needlessly ugly. Why not just declare sp and dp char *? That's what I checked in. -- Keir