[PATCH 0/5] Various cleanups

Michal Privoznik mprivozn at redhat.com
Tue Nov 2 17:10:37 UTC 2021


I've been playing with cocci lately and noticed it had troubles parsing
some files. When I looked into them I had trouble parsing them as well.

Michal Prívozník (5):
  node_device_conf: Bring variables into loops
  virpcivpd: Bring variables into loops
  virpcivpdtest: Declare variables at multiple lines
  lib: Use G_N_ELEMENTS instead of sizeof()/sizeof()
  scripts: Properly declare g_auto() stub for cocci

 scripts/cocci-macro-file.h     |  2 +-
 src/conf/node_device_conf.c    | 46 +++++++++++++---------------------
 src/libxl/libxl_capabilities.c |  2 +-
 src/util/virpcivpd.c           | 19 +++-----------
 tests/virpcimock.c             |  2 +-
 tests/virpcivpdtest.c          | 29 ++++++++++-----------
 6 files changed, 39 insertions(+), 61 deletions(-)

-- 
2.32.0




More information about the libvir-list mailing list