[libvirt PATCH 0/3] virHashNew refactorings - part VIII

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"virHashNew" cannot return NULL, yet we check for NULL in various places.

See https://listman.redhat.com/archives/libvir-list/2021-July/msg00074.html.

* Patch #1 is a fixed version of
https://listman.redhat.com/archives/libvir-list/2021-July/msg00720.html.

* Patch #2 is a fixed version of
https://listman.redhat.com/archives/libvir-list/2021-July/msg00721.html.

* For patch #3, see
https://listman.redhat.com/archives/libvir-list/2021-July/msg00691.html.
I mixed something up and was under the impression that the libvirt code style
forbade `for` loops with anything else than `size_t` typed variables.

Tim Wiederhake (3):
  virLockSpaceNewPostExecRestart: `virHashNew` cannot return NULL
  WIP virStoragePoolObjListNew: `virHashNew` cannot return NULL
  virNWFilterParseParamAttributes: Simplify loop

 src/conf/nwfilter_params.c | 7 ++-----
 src/conf/virstorageobj.c   | 7 ++-----
 src/util/virlockspace.c    | 3 +--
 3 files changed, 5 insertions(+), 12 deletions(-)

-- 
2.31.1





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux