From: Keir Fraser Subject: Re: Compile error when including xenctrl.h Date: Tue, 12 Jun 2007 08:50:25 +0100 Message-ID: References: <466E36A2.2080504@wettzell.ifag.de> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <466E36A2.2080504@wettzell.ifag.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: dassing@fs.wettzell.de, Xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 12/6/07 07:01, "Reiner Dassing" wrote: > these errors could be solved. > > Any comments? I think it's the const before the * that is bogus. It's probably meant to be after the *, otherwise it probably can be interpreted as a duplicate of the const before the type name. That const can be removed entirely in fact, as the const-ness of the pointer itself is quite uninteresting: it's the thing pointed at that we care about the const-ness of. So, e.g., I'll change it to const xc_error *xc_get_last_error(void); -- Keir