Minor changes to lv_api_do.c
This commit is contained in:
parent
1f3335e7b3
commit
09880ae7fe
|
@ -1,7 +1,7 @@
|
|||
#include <libvirt.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <libvirt/libvirt.h>
|
||||
|
||||
void pr_bad();
|
||||
void pr_conn_bad();
|
||||
|
@ -48,9 +48,7 @@ const char NOMATCH[]="# No matching domain";
|
|||
|
||||
int main () {
|
||||
setlinebuf(stdout); /* Make sure output is always line buffered */
|
||||
/* Connect to libvirt API */
|
||||
conn=virConnectOpen(NULL);
|
||||
int loop=1;
|
||||
conn=virConnectOpen(NULL); /* Connect to libvirt API */
|
||||
if ( conn == NULL) {
|
||||
pr_conn_bad();
|
||||
exit(E_LIBVIRT);
|
||||
|
|
Loading…
Reference in New Issue