]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
syntax-check: s/VIR_DIR_CLOSE/g_autoptr(DIR)/
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 14 Jul 2021 14:53:04 +0000 (16:53 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 14 Jul 2021 15:03:12 +0000 (17:03 +0200)
We have a syntax-check rule that forbids explicit closedir().
However, the error message suggest using VIR_DIR_CLOSE() which
was removed a few releases ago (v6.10.0-rc1~389).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
build-aux/syntax-check.mk

index eda89f40add3e0edf508318fabdf8beca74b0024..256f9f695a2e0a757f0a4d8b73b190bb877a81e9 100644 (file)
@@ -472,7 +472,7 @@ sc_prohibit_gethostname:
 sc_prohibit_readdir:
        @prohibit='\b(read|close|open)dir *\(' \
        exclude='exempt from syntax-check' \
-       halt='use virDirOpen, virDirRead and VIR_DIR_CLOSE' \
+       halt='use virDirOpen, virDirRead and g_autoptr(DIR)' \
          $(_sc_search_regexp)
 
 sc_prohibit_gettext_noop: