]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
prohibit new uses of VIR_ERR_NO_MEMORY
authorJim Meyering <meyering@redhat.com>
Thu, 29 Jan 2009 12:10:52 +0000 (12:10 +0000)
committerJim Meyering <meyering@redhat.com>
Thu, 29 Jan 2009 12:10:52 +0000 (12:10 +0000)
* Makefile.maint (sc_prohibit_VIR_ERR_NO_MEMORY): New rule.
* .x-sc_prohibit_VIR_ERR_NO_MEMORY: New file: exceptions.

.x-sc_prohibit_VIR_ERR_NO_MEMORY [new file with mode: 0644]
ChangeLog
Makefile.maint

diff --git a/.x-sc_prohibit_VIR_ERR_NO_MEMORY b/.x-sc_prohibit_VIR_ERR_NO_MEMORY
new file mode 100644 (file)
index 0000000..efb2012
--- /dev/null
@@ -0,0 +1,8 @@
+ChangeLog
+docs/devhelp/libvirt-virterror.html
+docs/html/libvirt-virterror.html
+docs/libvirt-api.xml
+docs/libvirt-refs.xml
+include/libvirt/virterror.h
+qemud/remote.c
+src/virterror.c
index 7e7bcada347c8d6f0c5f12e6f4bd760e27dedcfd..e9313393164e9594129e29a5af7ea5fab0dd717f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Thu Jan 29 13:07:05 +0100 2009 Jim Meyering <meyering@redhat.com>
+
+       prohibit new uses of VIR_ERR_NO_MEMORY
+       * Makefile.maint (sc_prohibit_VIR_ERR_NO_MEMORY): New rule.
+       * .x-sc_prohibit_VIR_ERR_NO_MEMORY: New file: exceptions.
+
 Thu Jan 29 13:06:51 +0100 2009 Jim Meyering <meyering@redhat.com>
 
        error-reporting calls using VIR_ERR_NO_MEMORY: use virReportOOMError instead
index 204370d39937d0cf1a2964099883189cdaf3f909..62f9fe4120a96ec9764b975992242c7d883e2183 100644 (file)
@@ -113,6 +113,11 @@ sc_prohibit_asprintf:
        @grep -nE '\<[a]sprintf\>' $$($(VC_LIST_EXCEPT)) && \
          { echo '$(ME): use virAsprintf, not a'sprintf 1>&2; exit 1; } || :
 
+sc_prohibit_VIR_ERR_NO_MEMORY:
+       @re='\<V''IR_ERR_NO_MEMORY\>'                                   \
+       msg='use virReportOOMError, not V'IR_ERR_NO_MEMORY              \
+         $(_prohibit_regexp)
+
 sc_prohibit_nonreentrant:
        @fail=0 ; \
        for i in $(NON_REENTRANT) ; \