]> xenbits.xensource.com Git - libvirt.git/commitdiff
docs: hacking: add missing code element
authorJán Tomko <jtomko@redhat.com>
Mon, 11 Nov 2019 12:00:42 +0000 (13:00 +0100)
committerJán Tomko <jtomko@redhat.com>
Tue, 12 Nov 2019 15:46:29 +0000 (16:46 +0100)
Wrap the 'g_renew()' call for VIR_SHRINK_N in <code>.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
docs/hacking.html.in

index 5d13e4f71dbd9b495385c445ab6ca752a1c2eb93..06deab9e9024f1332f00d13356e7b48cd88651a7 100644 (file)
@@ -1056,7 +1056,7 @@ BAD:
             <td>the newly added memory is not zeroed</td></tr>
         <tr><td><code>VIR_EXPAND_N</code></td><td><code>g_renew(var_t, ptr, n)</code></td>
             <td>zero the new memory manually or use an array type</td></tr>
-        <tr><td><code>VIR_SHRINK_N</code></td><td>g_renew(var_t, ptr, n)</td>
+        <tr><td><code>VIR_SHRINK_N</code></td><td><code>g_renew(var_t, ptr, n)</code></td>
             <td></td></tr>
         <tr><td><code>VIR_APPEND_ELEMENT</code></td><td><code>g_array_append_val</code></td>
             <td><code>g_ptr_array_add</code> or <code>g_byte_array_append</code></td></tr>