]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virfile: Update example use of virDirRead()
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 14 Jul 2021 14:54:54 +0000 (16:54 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 14 Jul 2021 15:03:19 +0000 (17:03 +0200)
commitbfca8891226c306cc3a5bacafcef7b5063dcaecf
treeab1191ba3b4799be6d8266227b1c4395aba8071f
parent1678a34f47707ff3c4d7dce021b891a136d8bf4c
virfile: Update example use of virDirRead()

We have an example in virDirRead() documentation on how to use
the function. In there, the directory structure is plain DIR, but
that won't work anymore. Switch over to g_autoptr(DIR) which is
what we use now.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/util/virfile.c