From 52dbeac8e79900c4142906a0f4840598c1b6688b Mon Sep 17 00:00:00 2001 From: Claudio Bley Date: Wed, 30 Jan 2013 10:42:21 +0100 Subject: [PATCH] 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. --- src/libvirt.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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.