diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2014-06-10 17:39:53 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2014-06-10 18:13:56 +0200 |
commit | 8b8afec099608fea69b45444508f3c78d5ebbb69 (patch) | |
tree | 762edeefab03842add5cf03c16b676f8654068ca /src/virt-viewer.c | |
parent | 2bd835fb0557c280b63d9007933e8140fb1bd007 (diff) | |
download | virt-viewer-8b8afec099608fea69b45444508f3c78d5ebbb69.tar.gz virt-viewer-8b8afec099608fea69b45444508f3c78d5ebbb69.tar.xz virt-viewer-8b8afec099608fea69b45444508f3c78d5ebbb69.zip |
util: get rid of ARRAY_CARDINALITY
Diffstat (limited to 'src/virt-viewer.c')
-rw-r--r-- | src/virt-viewer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/virt-viewer.c b/src/virt-viewer.c index 4593a11..8a1d8c5 100644 --- a/src/virt-viewer.c +++ b/src/virt-viewer.c @@ -672,7 +672,7 @@ virt_viewer_connect(VirtViewerApp *app) { VIR_CRED_AUTHNAME, VIR_CRED_PASSPHRASE }; virConnectAuth auth_libvirt = { .credtype = cred_types, - .ncredtype = ARRAY_CARDINALITY(cred_types), + .ncredtype = G_N_ELEMENTS(cred_types), .cb = virt_viewer_auth_libvirt_credentials, .cbdata = app, }; |