1. 06 2月, 2009 11 次提交
    • J
      remove remainder of offending strerror uses · bafd7389
      Jim Meyering 提交于
      * qemud/qemud.c (GET_CONF_STR): Use virStrerror, not strerror.
      * qemud/remote.c (remoteDispatchDomainBlockPeek): Likewise.
      (remoteDispatchDomainMemoryPeek, remoteDispatchAuthSaslInit): Likewise.
      (remoteDispatchAuthPolkit): Likewise.
      * src/lxc_container.c (lxcContainerAvailable): Likewise.
      * src/network_driver.c (networkStartNetworkDaemon): Likewise.
      (networkShutdownNetworkDaemon): Likewise.
      * src/qemu_conf.c (qemudExtractVersion, qemudNetworkIfaceConnect):
      * src/storage_conf.c (virStoragePoolLoadAllConfigs): Likewise.
      * src/storage_driver.c (storagePoolUndefine): Likewise.
      * src/uml_driver.c (umlStartup, umlStartVMDaemon): Likewise.
      * src/util.c (virFileReadAll): Likewise.
      * src/uuid.c (virUUIDGenerate): Likewise.
      * src/xen_internal.c (get_cpu_flags): Likewise.
      bafd7389
    • J
      don't include raw errno in diagnostics · d22a844b
      Jim Meyering 提交于
      * src/uml_driver.c (umlStartVMDaemon): Don't print raw errno value.
      * qemud/remote.c (remoteDispatchAuthSaslInit): Likewise.
      d22a844b
    • J
      qemud.c: use virStrerror, not strerror · d2758fa1
      Jim Meyering 提交于
      d2758fa1
    • J
      iptables.c: Use virStrerror, not strerror. · 1e31bfb0
      Jim Meyering 提交于
      * src/iptables.c: Include "virterror_internal.h".
      Use virStrerror, not strerror.
      * src/iptables.c (notifyRulesUpdated): Use %s rather than
      string-concatenation that made sc_unmarked_diagnostics report
      a false-positive.
      1e31bfb0
    • J
      use virReportOOMError rather than more verbose equivalent · dcfa920a
      Jim Meyering 提交于
      * src/qemu_driver.c (qemudDomainSave, qemudDomainRestore)
      (qemudDomainAttachPciDiskDevice)
      (qemudDomainAttachUsbMassstorageDevice):
      dcfa920a
    • J
      qemu_driver.c: s/strerror/virStrerror.../ · e60430be
      Jim Meyering 提交于
      Perform most changs automatically, with this:
      perl -pi -e 's/\bstrerror *\((.+?)\)/virStrerror($1, ebuf, sizeof ebuf)/'
      Then, declare ebuf, as needed
      e60430be
    • J
      remove duplicate *SetCloseExec and *SetNonBlock functions · b0d49913
      Jim Meyering 提交于
      * src/qemu_driver.c: Use virSetCloseExec and virSetNonBlock,
      rather than qemuSet* functions.  Suggested by Daniel P. Berrange.
      * src/util.c (virSetCloseExec): Publicize.
      * src/util.h (virSetCloseExec): Declare
      * src/libvirt_private.syms: Add virSetCloseExec.
      b0d49913
    • J
      ChangeLog: correct date formats one last time · 22c9bf6d
      Jim Meyering 提交于
      22c9bf6d
    • J
      qemu_driver.c: use virReportSystemError in place of some qemudLog uses · caea9c00
      Jim Meyering 提交于
      ...thus eliminating many uses of strerror.
      (kvmGetMaxVCPUs): Rather than merely warning, diagnose an error
      and return -1 upon failure to open KVM_DEVICE.  Suggested by
      Daniel P. Berrange.
      caea9c00
    • J
      publicize virStrerror · 7bc569dd
      Jim Meyering 提交于
      * src/virterror.c (virStrerror): Remove "static".
      * src/virterror_internal.h (virStrerror): Declare it.
      * src/libvirt_private.syms: Add virStrerror;
      7bc569dd
    • J
      remove useless code · a9aa76ba
      Jim Meyering 提交于
      * src/bridge.c (brAddTap): Remove redundant errno=ENOMEM assignment
      after failed strdup.
      * src/cgroup.c (virCgroupFree): Remove redundant *group=NULL assignment
      after VIR_FREE(*group).
      * src/lxc_driver.c (lxcShutdown): Likewise.
      * src/xen_unified.c (xenUnifiedClose): Likewise.
      * src/xm_internal.c (xenXMDomainConfigFormat): Rewrite disk-
      and net-config-setting code to be clearer.
      a9aa76ba
  2. 05 2月, 2009 1 次提交
  3. 04 2月, 2009 1 次提交
  4. 03 2月, 2009 6 次提交
    • J
      avoid a format-related warning · 6778ad0f
      Jim Meyering 提交于
      * src/qemu_driver.c (qemudStartVMDaemon): Use "%s".
      6778ad0f
    • J
      build: enable redundant-const check · dff21147
      Jim Meyering 提交于
      * Makefile.cfg (local-checks-to-skip): Remove sc_redundant_const.
      * src/lxc_controller.c: Remove redundant "const"(s).
      * src/storage_backend_fs.c: Likewise.
      * src/util.h: Likewise.
      * src/xen_internal.c: Likewise.
      * tests/qparamtest.c: Likewise.
      dff21147
    • J
      syntax-check: enable more checks · 08f87e3d
      Jim Meyering 提交于
      * Makefile.cfg (local-checks-to-skip): Don't skip sc_m4_quote_check.
      Don't skip sc_prohibit_nonreentrant.
      * Makefile.nonreentrant (NON_REENTRANT): Comment out until we've
      remove all remaining uses of strerror.
      08f87e3d
    • J
      cleanup: remove useless if-before-VIR_FREE · c18ccff4
      Jim Meyering 提交于
      * Makefile.cfg (useless_free_options): Also check for VIR_FREE.
      * src/iptables.c (iptRulesFree): Remove useless if-before-VIR_FREE.
      * src/remote_internal.c (remoteAuthSASL): Likewise.
      * src/test.c (testOpenFromFile): Likewise.
      c18ccff4
    • J
      tests: diagnose more open failures · d26c3387
      Jim Meyering 提交于
      * tests/qemuxml2argvtest.c: Revert the change,
      "tests: diagnose open failure" of 2009-01-30.
      * tests/testutils.c (virtTestLoadFile): Diagnose failure here.
      d26c3387
    • J
      fix more printf("%s", NULL) cases · 66929686
      John Levon 提交于
      66929686
  5. 31 1月, 2009 14 次提交
  6. 30 1月, 2009 7 次提交