From: Claudio Bley Date: Wed, 30 Jan 2013 09:42:21 +0000 (+0100) Subject: libvirt.c: indent code of virDomainGetMemoryParameters's documentation X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=52dbeac8e79900c4142906a0f4840598c1b6688b;p=libvirt.git libvirt.c: indent code of virDomainGetMemoryParameters's documentation By indenting code inside of comments, it gets recognized as a code block when generating the HTML documentation. --- diff --git a/src/libvirt.c b/src/libvirt.c index 352618d5ec..7d94cd7202 100644 --- a/src/libvirt.c +++ b/src/libvirt.c @@ -4077,14 +4077,14 @@ error: * * Here is a sample code snippet: * - * if ((virDomainGetMemoryParameters(dom, NULL, &nparams, 0) == 0) && - * (nparams != 0)) { - * if ((params = malloc(sizeof(*params) * nparams)) == NULL) - * goto error; - * memset(params, 0, sizeof(*params) * nparams); - * if (virDomainGetMemoryParameters(dom, params, &nparams, 0)) - * goto error; - * } + * if ((virDomainGetMemoryParameters(dom, NULL, &nparams, 0) == 0) && + * (nparams != 0)) { + * if ((params = malloc(sizeof(*params) * nparams)) == NULL) + * goto error; + * memset(params, 0, sizeof(*params) * nparams); + * if (virDomainGetMemoryParameters(dom, params, &nparams, 0)) + * goto error; + * } * * This function may require privileged access to the hypervisor. This function * expects the caller to allocate the @params.