Re: [PATCH] examples: Use virConnectOpenAuth in events-c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 24, 2011 at 11:51:43 +0000, Daniel P. Berrange wrote:
> On Thu, Nov 24, 2011 at 11:57:19AM +0100, Jiri Denemark wrote:
> > ---
> >  examples/domain-events/events-c/event-test.c |    4 +++-
> >  1 files changed, 3 insertions(+), 1 deletions(-)
> > 
> > diff --git a/examples/domain-events/events-c/event-test.c b/examples/domain-events/events-c/event-test.c
> > index 7c99222..cb1b568 100644
> > --- a/examples/domain-events/events-c/event-test.c
> > +++ b/examples/domain-events/events-c/event-test.c
> > @@ -353,7 +353,9 @@ int main(int argc, char **argv)
> >      virEventRegisterDefaultImpl();
> >  
> >      virConnectPtr dconn = NULL;
> > -    dconn = virConnectOpenReadOnly (argv[1] ? argv[1] : NULL);
> > +    dconn = virConnectOpenAuth(argc > 1 ? argv[1] : NULL,
> > +                               virConnectAuthPtrDefault,
> > +                               VIR_CONNECT_RO);
> >      if (!dconn) {
> >          printf("error opening\n");
> >          return -1;
> 
> ACK

Thanks, pushed.

Jirka

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]