]> xenbits.xensource.com Git - libvirt.git/commitdiff
viralloc.h: Fix typo in VIR_APPEND_ELEMENT_COPY_QUIT
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 18 Oct 2013 13:50:31 +0000 (15:50 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 18 Oct 2013 13:50:31 +0000 (15:50 +0200)
In fact, the suffix should be _QUIET not _QUIT to stress the
fact, that no OOM error is reported on error.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/viralloc.h

index 2ed654d70be240b532635dbe582aefeac436f5ad..55372e56107d91ce2578cbffdd9027843b76ceb7 100644 (file)
@@ -446,7 +446,7 @@ void virFree(void *ptrptr) ATTRIBUTE_NONNULL(1);
     virInsertElementsN(&(ptr), sizeof(*(ptr)), -1, &(count),  \
                        VIR_TYPEMATCH(ptr, &(newelem)), &(newelem), true, false, \
                        false, 0, NULL, NULL, 0)
-# define VIR_APPEND_ELEMENT_COPY_QUIT(Eptr, count, newelem) \
+# define VIR_APPEND_ELEMENT_COPY_QUIET(ptr, count, newelem) \
     virInsertElementsN(&(ptr), sizeof(*(ptr)), -1, &(count),  \
                        VIR_TYPEMATCH(ptr, &(newelem)), &(newelem), false, false, \
                        false, 0, NULL, NULL, 0)