]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: hacking: move virStrerror to removed functions
authorJán Tomko <jtomko@redhat.com>
Mon, 9 Mar 2020 20:01:11 +0000 (21:01 +0100)
committerJán Tomko <jtomko@redhat.com>
Fri, 13 Mar 2020 16:26:55 +0000 (17:26 +0100)
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
docs/hacking.html.in

index 94c74863b92f0b48f5d22f50a5423add6fecd2c8..1756e84fc40d698bf1461bcaad327d1268a652fc 100644 (file)
@@ -1070,8 +1070,6 @@ BAD:
         <tr><td><code>virAsprintf</code></td><td><code>g_strdup_printf</code></td><td></td></tr>
         <tr><td><code>virVasprintf</code></td><td><code>g_strdup_vprint</code></td>
             <td>use <code>g_vasprintf</code> if you really need to know the returned length</td></tr>
-        <tr><td><code>virStrerror</code></td><td><code>g_strerror</code></td>
-            <td>the error strings are cached globally so no need to free it</td></tr>
     </table>
     </dl>
 
@@ -1127,6 +1125,7 @@ BAD:
         <tr><td><code>ATTRIBUTE_UNUSED</code></td><td><code>G_GNUC_UNUSED</code></td><td></td></tr>
         <tr><td><code>VIR_STRDUP</code></td><td><code>g_strdup</code></td><td></td></tr>
         <tr><td><code>VIR_STRNDUP</code></td><td><code>g_strndup</code></td><td></td></tr>
+        <tr><td><code>virStrerror</code></td><td><code>g_strerror</code></td><td></td></tr>
     </table>