mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-20 18:03:50 +03:00
remote: remove unneeded global variables
Remove unneeded global variables and convert them into local variables where they're needed. Signed-off-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com> Reviewed-by: Bjoern Walk <bwalk@linux.vnet.ibm.com> Reviewed-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
1ee9c384da
commit
9f24004b82
@ -72,9 +72,7 @@ VIR_LOG_INIT("daemon.libvirtd");
|
||||
virNetSASLContextPtr saslCtxt = NULL;
|
||||
#endif
|
||||
virNetServerProgramPtr remoteProgram = NULL;
|
||||
virNetServerProgramPtr adminProgram = NULL;
|
||||
virNetServerProgramPtr qemuProgram = NULL;
|
||||
virNetServerProgramPtr lxcProgram = NULL;
|
||||
|
||||
volatile bool driversInitialized = false;
|
||||
|
||||
@ -1074,6 +1072,8 @@ int main(int argc, char **argv) {
|
||||
virNetDaemonPtr dmn = NULL;
|
||||
virNetServerPtr srv = NULL;
|
||||
virNetServerPtr srvAdm = NULL;
|
||||
virNetServerProgramPtr adminProgram = NULL;
|
||||
virNetServerProgramPtr lxcProgram = NULL;
|
||||
char *remote_config_file = NULL;
|
||||
int statuswrite = -1;
|
||||
int ret = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user