diff options
author | 2011-11-22 12:09:13 +0100 | |
---|---|---|
committer | 2011-11-24 13:43:44 +0100 | |
commit | 845570595957dbdc94b8b2f7b7ff0f64fa27db38 (patch) | |
tree | 0b05b9ab7831d8af899a59f5c4e8e7b5c00e02e0 /examples | |
parent | qemu: Cancel p2p migration when connection breaks (diff) | |
download | libvirt-845570595957dbdc94b8b2f7b7ff0f64fa27db38.tar.gz libvirt-845570595957dbdc94b8b2f7b7ff0f64fa27db38.tar.bz2 libvirt-845570595957dbdc94b8b2f7b7ff0f64fa27db38.zip |
examples: Use virConnectOpenAuth in events-c
Diffstat (limited to 'examples')
-rw-r--r-- | 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 af1f47d09..648e6eaef 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; |