By indenting code inside of comments, it gets recognized as a
code block when generating the HTML documentation.
Signed-off-by: Claudio Bley <cbley(a)av-test.de>
---
See #virDomainGetMemoryParameters in the generated HTML document
src/libvirt.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/libvirt.c b/src/libvirt.c
index f81a3de..d9c4b6b 100644
--- a/src/libvirt.c
+++ b/src/libvirt.c
@@ -3880,14 +3880,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.
--
1.7.9.5