From: Ian Jackson Subject: Re: [PATCH 3 of 8] Tools: Update memshr tool to use new sharing API Date: Mon, 12 Dec 2011 12:14:40 +0000 Message-ID: <20197.61488.97571.727445@mariner.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Andres Lagar-Cavilla Cc: "andres@gridcentric.ca" , "xen-devel@lists.xensource.com" , "Tim (Xen.org)" , Ian Campbell , "adin@gridcentric.ca" List-Id: xen-devel@lists.xenproject.org Andres Lagar-Cavilla writes ("[PATCH 3 of 8] Tools: Update memshr tool to use new sharing API"): > #ifdef MEMSHR > - image->memshr_id = memshr_vbd_image_get(file); > + image->memshr_id = memshr_vbd_image_get((char *)file); This case would be unnecessary if memshr_vbd_image_get was const-correct, which I think would be better. Ian.