syntax-check: s/VIR_DIR_CLOSE/g_autoptr(DIR)/

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>
This commit is contained in:
Michal Privoznik 2021-07-14 16:53:04 +02:00
parent a856f5d0fc
commit 1678a34f47

View File

@ -472,7 +472,7 @@ sc_prohibit_gethostname:
sc_prohibit_readdir: sc_prohibit_readdir:
@prohibit='\b(read|close|open)dir *\(' \ @prohibit='\b(read|close|open)dir *\(' \
exclude='exempt from syntax-check' \ 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_search_regexp)
sc_prohibit_gettext_noop: sc_prohibit_gettext_noop: