1. 31 1月, 2008 5 次提交
  2. 30 1月, 2008 11 次提交
    • J
      Arrange for "make syntax-check" to pass. · 51dd1d9e
      Jim Meyering 提交于
      * .x-sc_avoid_if_before_free: Exempt ChangeLog.
      * tests/statstest.c: Include <config.h>, not "config.h".
      51dd1d9e
    • D
      21416a47
    • J
      Also detect and remove unnecessary if-before-xmlXPathFreeContext. · 2367caa3
      Jim Meyering 提交于
      * build-aux/find-unnecessary-if-before-free: Update regexp.
      * src/openvz_conf.c: Remove unnecessary "if (P)"-before xmlXPathFreeContext.
      * src/qemu_conf.c: Likewise.
      * src/virsh.c: Likewise.
      * src/xm_internal.c: Likewise.
      * src/xml.c: Likewise.
      * tests/xmlrpctest.c: Likewise.
      2367caa3
    • J
      Enable two more tests. · 1be2c8c8
      Jim Meyering 提交于
      * Makefile.cfg (local-checks-to-skip)
      [sc_cast_of_x_alloc_return_value, sc_cast_of_argument_to_free]: Enable.
      1be2c8c8
    • J
      Enable the <assert.h>-checking test; fix violations. · 2c725623
      Jim Meyering 提交于
      * Makefile.cfg (local-checks-to-skip)
      [sc_prohibit_assert_without_use]: Enable.
      * qemud/mdns.c: Don't include <assert.h>; no uses of assert here.
      * qemud/qemud.c: Likewise.
      * qemud/remote.c: Likewise.
      2c725623
    • J
      Enable the po-check test; fix violations. · 05ae9d8b
      Jim Meyering 提交于
      * Makefile.cfg (local-checks-to-skip) [po-check]: Enable.
      * po/POTFILES.in: Add three file names.  Sort.
      05ae9d8b
    • J
      Update from gnulib · bc48db57
      Jim Meyering 提交于
      * lib/poll.c: Update.
      * lib/string.in.h: Update.
      * m4/string_h.m4: Update.
      * tests/test-getaddrinfo.c: Update.
      * lib/Makefile.am: Regenerate.
      bc48db57
    • J
      Enable the <config.h>-requiring test; fix violations · a3781881
      Jim Meyering 提交于
      Use <config.h>, not "config.h", per autoconf documentation.
      * Makefile.cfg (local-checks-to-skip) [sc_require_config_h]: Enable.
      * .x-sc_require_config_h: New file, to list exempted files.
      * Makefile.am (EXTRA_DIST): Add .x-sc_require_config_h.
      a3781881
    • J
      Enable the duplicate-"the" test; fix violations · 9e4c8fcb
      Jim Meyering 提交于
      * Makefile.cfg (local-checks-to-skip) [sc_the_the]: Enable.
      * docs/virsh.pod: Remove a duplicate "the".
      * libvirt.spec.in: Likewise.
      * virsh.1: Likewise.
      9e4c8fcb
    • J
      Add framework for code style- and syntax-checking rules. · cc337da2
      Jim Meyering 提交于
      	Almost all tests are initially disabled via the list in Makefile.cfg.
      	* Makefile.am (EXTRA_DIST): Add .x-sc_avoid_if_before_free.
      	Omit names of files that automake includes automatically.
      	* .x-sc_avoid_if_before_free: New file.
      	* build-aux/vc-list-files: Likewise.
      	* build-aux/find-unnecessary-if-before-free: Likewise.
      	* GNUmakefile, Makefile.cfg, Makefile.maint: New files.
      cc337da2
    • J
      Given code like if (foo) free (foo); remove the useless "if (foo) " part. · acff2d11
      Jim Meyering 提交于
      Likewise, given if (foo != NULL) free (foo); remove the useless "if" test.
      
      * proxy/libvirt_proxy.c: Remove unnecessary "if" test before free.
      * python/generator.py: Likewise.
      * qemud/qemud.c: Likewise.
      * src/buf.c: Likewise.
      * src/conf.c: Likewise.
      * src/hash.c: Likewise.
      * src/iptables.c: Likewise.
      * src/libvirt.c: Likewise.
      * src/openvz_conf.c: Likewise.
      * src/qemu_conf.c: Likewise.
      * src/qemu_driver.c: Likewise.
      * src/remote_internal.c: Likewise.
      * src/test.c: Likewise.
      * src/virsh.c: Likewise.
      * src/virterror.c: Likewise.
      * src/xen_internal.c: Likewise.
      * src/xen_unified.c: Likewise.
      * src/xend_internal.c: Likewise.
      * src/xm_internal.c: Likewise.
      * src/xml.c: Likewise.
      * src/xmlrpc.c: Likewise.
      * src/xs_internal.c: Likewise.
      * tests/testutils.c: Likewise.
      * tests/xencapstest.c: Likewise.
      * tests/xmconfigtest.c: Likewise.
      acff2d11
  3. 25 1月, 2008 3 次提交
  4. 24 1月, 2008 2 次提交
  5. 23 1月, 2008 3 次提交
  6. 22 1月, 2008 2 次提交
  7. 21 1月, 2008 9 次提交
  8. 20 1月, 2008 2 次提交
  9. 18 1月, 2008 2 次提交
    • J
      Handle PyTuple_New's malloc failure. · 02b98afe
      Jim Meyering 提交于
      * python/libvir.c (libvirt_virDomainBlockStats): Handle a NULL
      return from PyTuple_New.
      (libvirt_virDomainInterfaceStats, libvirt_virGetLastError): Likewise.
      (libvirt_virConnGetLastError): Likewise.
      02b98afe
    • J
      Factor out some duplication. · ec6e9b78
      Jim Meyering 提交于
      * python/libvir.c (VIR_PY_NONE): New macro, to encapsulate
      a common two-statement sequence.
      Replace all such 2-stmt sequences.
      ec6e9b78
  10. 17 1月, 2008 1 次提交