summaryrefslogtreecommitdiff
path: root/src/libvirt-host.c
diff options
context:
space:
mode:
authorMichal Privoznik <mprivozn@redhat.com>2018-04-13 13:51:23 +0200
committerMichal Privoznik <mprivozn@redhat.com>2018-04-18 10:04:55 +0200
commit4e42981b36c1d3f08633a80e27515896d1021e85 (patch)
tree4d41841663806cad2e1689d6c65982c25569952c /src/libvirt-host.c
parentcbbbe7b448afd785798df5fbc1f54c495eafb4d8 (diff)
downloadlibvirt-4e42981b36c1d3f08633a80e27515896d1021e85.tar.gz
src: Unify virObject member name
Whenever we declare a new object the first member of the struct has to be virObject (or any other member of that family). Now, up until now we did not care about the name of the struct member. But lets unify it so that we can do some checks at compile time later. The unified name is 'parent'. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'src/libvirt-host.c')
-rw-r--r--src/libvirt-host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libvirt-host.c b/src/libvirt-host.c
index 7ff7407a08..76087badd8 100644
--- a/src/libvirt-host.c
+++ b/src/libvirt-host.c
@@ -51,7 +51,7 @@ VIR_LOG_INIT("libvirt.host");
int
virConnectRef(virConnectPtr conn)
{
- VIR_DEBUG("conn=%p refs=%d", conn, conn ? conn->object.parent.u.s.refs : 0);
+ VIR_DEBUG("conn=%p refs=%d", conn, conn ? conn->parent.parent.u.s.refs : 0);
virResetLastError();