1. 05 2月, 2008 1 次提交
    • J
      Eliminate all uses of virBufferAdd with string literals. · fb66d5ab
      Jim Meyering 提交于
      * Makefile.maint (sc_prohibit_virBufferAdd_with_string_literal):
      New rule.
      * src/buf.h (virBufferAddLit): Define.
      * src/conf.c (virConfSaveValue): Use virBufferAddLit, in place
      of virBufferAdd everywhere possible.
      (virConfSaveEntry): Likewise.
      * src/qemu_conf.c (qemudGenerateXML, qemudGenerateNetworkXML): Likewise.
      * src/qemu_driver.c (qemudGetFeatures, qemudGetCapabilities): Likewise.
      * src/test.c (testDomainDumpXML, testNetworkDumpXML): Likewise.
      * src/xen_internal.c (xenHypervisorMakeCapabilitiesXML): Likewise.
      * src/xend_internal.c (xend_parse_sexp_desc_os): Likewise.
      (xend_parse_sexp_desc, sexpr_to_xend_topology_xml): Likewise.
      * src/xm_internal.c (xenXMDomainFormatXML, xenXMDomainPinVcpu): Likewise.
      * src/xml.c (virSaveCpuSet, virParseXenCpuTopology): Likewise.
      (virDomainParseXMLGraphicsDescImage): Likewise.
      (virDomainParseXMLGraphicsDescVFB, virDomainParseXMLOSDescHVM): Likewise.
      (virDomainParseXMLOSDescPV, virDomainParseXMLDiskDesc): Likewise.
      (virDomainParseXMLIfDesc, virDomainParseXMLDesc): Likewise.
      fb66d5ab
  2. 30 1月, 2008 3 次提交
    • 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 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
      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. 15 1月, 2008 1 次提交
  4. 14 1月, 2008 1 次提交
    • J
      Clean up the global name space. · 2edab512
      Jim Meyering 提交于
      * src/qemu_conf.c: Add "static" and "const" attributes to some globals.
      * src/qemu_conf.h: Update a declaration.
      * src/qemu_driver.c (qemud_driver): Declare static.
      
      
      Author: Jim Meyering <meyering@redhat.com>
      2edab512
  5. 07 1月, 2008 1 次提交
  6. 12 12月, 2007 1 次提交
    • J
      Use a variable name as sizeof argument, not a type name. · 49230350
      Jim Meyering 提交于
      Given code like: T *var = calloc (n, sizeof (T));
      Convert to this: T *var = calloc (n, sizeof (*var));
      This first-cut change adjusts all malloc, calloc, and
      realloc statements.
      
      The only binary differences are in remote_internal.c
      (due to the bug fix) and in xmlrpc.c (due to factorization).
      
      * python/libvir.c: As above.
      * qemud/event.c: Likewise.
      * qemud/mdns.c: Likewise.
      * qemud/qemud.c: Likewise.
      * qemud/remote.c: Likewise.
      * src/bridge.c: Likewise.
      * src/buf.c: Likewise.
      * src/conf.c: Likewise.
      * src/hash.c: Likewise.
      * src/iptables.c: Likewise.
      * src/openvz_conf.c: Likewise.
      * src/qemu_conf.c: Likewise.
      * src/qemu_driver.c: Likewise.
      * src/test.c: Likewise.
      * src/xen_internal.c: Likewise.
      * src/xen_unified.c: Likewise.
      * src/xm_internal.c: Likewise.
      * src/xml.c: Likewise.
      * tests/qemuxml2argvtest.c: Likewise.
      * src/xmlrpc.c (xmlRpcValuePtr): Likewise, and minor factorization.
      * src/remote_internal.c (remoteAuthMakeCredentials): Use the right
      type when allocating space for an array of cred _pointers_.
      49230350
  7. 05 12月, 2007 2 次提交
    • D
      Strip autogenerated vnetXXX interfaces · a8977b62
      Daniel P. Berrange 提交于
      a8977b62
    • R
      Wed Dec 5 13:48:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com> · 4bfdb77a
      Richard W.M. Jones 提交于
              * python/libvir.c, python/libvirt_wrap.h, qemud/qemud.c,
              qemud/remote.c, src/internal.h, src/openvz_conf.c,
              src/openvz_driver.c, src/proxy_internal.h, src/qemu_conf.c,
              src/qemu_driver.c, src/remote_internal.h, src/test.h, src/util.c,
              src/xen_unified.c, src/xen_unified.h, tests/nodeinfotest.c,
              tests/qemuxml2argvtest.c, tests/qemuxml2xmltest.c, tests/reconnect.c,
              tests/sexpr2xmltest.c, tests/virshtest.c, tests/xencapstest.c,
              tests/xmconfigtest.c, tests/xml2sexprtest.c:
              Change #include <> to #include "" for local includes.
              Removed many includes from src/internal.h and put them in
              the C files which actually use them.
              Removed <ansidecl.h> - unused.
              Added a comment around __func__.
              Removed a clashing redefinition of VERSION symbol.
              All limits (PATH_MAX etc) now done in src/internal.h, so we
              don't need to include those headers in other files.
      4bfdb77a
  8. 03 12月, 2007 1 次提交
  9. 01 12月, 2007 1 次提交
  10. 26 11月, 2007 1 次提交
  11. 07 11月, 2007 1 次提交
    • R
      Tue Nov 6 19:54:00 CET 2007 Jim Meyering <meyering@redhat.com> · 5a628880
      Richard W.M. Jones 提交于
              Avoid risk of format string abuse (also avoids gcc warnings).
              * src/util.c (ReportError): Use a literal "%s" format string.
              * src/remote_internal.c (server_error): Likewise.
              * src/qemu_conf.c (qemudReportError): Likewise.
              * acinclude.m4: Add -Wformat -Wformat-security to default
                list of warning flags, to warn about errors such as the
                above.
      5a628880
  12. 27 10月, 2007 1 次提交
  13. 13 10月, 2007 1 次提交
  14. 29 9月, 2007 1 次提交
  15. 22 9月, 2007 1 次提交
  16. 14 9月, 2007 1 次提交
  17. 14 8月, 2007 1 次提交
  18. 10 8月, 2007 1 次提交
  19. 07 8月, 2007 1 次提交
  20. 31 7月, 2007 2 次提交
  21. 30 7月, 2007 1 次提交
  22. 24 7月, 2007 1 次提交
  23. 19 7月, 2007 2 次提交
  24. 17 7月, 2007 1 次提交
  25. 12 7月, 2007 1 次提交
  26. 27 6月, 2007 9 次提交
  27. 11 6月, 2007 1 次提交
    • R
      Mon Jun 11 12:49:00 BST 2007 Richard W.M. Jones <rjones@redhat.com> · 9172d0ec
      Richard W.M. Jones 提交于
      	* qemud/Makefile.am, qemud/dispatch.c, qemud/dispatch.h,
      	  qemud/internal.h, qemud/protocol.c,
      	  qemud/protocol.h, qemud/protocol.x, qemud/qemud.c:
      	  libvirt_qemud server-side modifications to use
      	  XDR-based protocol instead of homebrew (Dan Berrange).
      	  QEMUD server modified to dispatch calls from remote
      	  clients (Richard Jones).  Added TLS support (Richard Jones).
      	  Added TCP & IPv6 support (Richard Jones).
      	  Additional configuration file, command-line handling, and
      	  usage (Richard Jones).
      	* qemud/conf.c: Remove unnecessary header file.
      9172d0ec