From: Ian Jackson Subject: Re: Re: [PATCH] libxl: initialize domid to 0 in libxl__create_stubdom Date: Fri, 24 Jun 2011 15:37:33 +0100 Message-ID: <19972.41261.966901.554677@mariner.uk.xensource.com> References: <1307595829.8990.9.camel@limbo> <1307606121.775.761.camel@zakaz.uk.xensource.com> <1307608287.31235.17.camel@limbo> <1307615031.775.810.camel@zakaz.uk.xensource.com> <19963.37638.19033.472036@mariner.uk.xensource.com> <19968.36303.693667.57932@mariner.uk.xensource.com> <19968.43454.234108.5386@mariner.uk.xensource.com> 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: Stefano Stabellini Cc: Ian Campbell , "xen-devel@lists.xensource.com" , Wei Liu List-Id: xen-devel@lists.xenproject.org Stefano Stabellini writes ("Re: [Xen-devel] Re: [PATCH] libxl: initialize domid to 0 in libxl__create_stubdom"): > This problem is caused by the way the outer function is coded and should not > affect the way other functions are coded. The API of a particular function does not live in isolation. I think that the inner function's API should make it easy to write the outer function - and, specifically, make it plausible to spot mistakes in the outer function. Ian.