]> xenbits.xensource.com Git - libvirt.git/commitdiff
libvirt.c: indent code of virDomainGetMemoryParameters's documentation
authorClaudio Bley <cbley@av-test.de>
Wed, 30 Jan 2013 09:42:21 +0000 (10:42 +0100)
committerClaudio Bley <cbley@av-test.de>
Wed, 30 Oct 2013 16:30:12 +0000 (17:30 +0100)
By indenting code inside of comments, it gets recognized as a
code block when generating the HTML documentation.

src/libvirt.c

index 352618d5ec35cf0284bc8dc3ec8f323fdc88b233..7d94cd7202db3ce66696104c89fa99834e5b3944 100644 (file)
@@ -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.