Thu Feb 15 19:06:22 IST 2007 Mark McLoughlin <markmc@redhat.com>

* qemud/conf.c: fix a couple of typos
This commit is contained in:
Mark McLoughlin 2007-02-15 19:06:10 +00:00
parent 9839cf3798
commit 4e2fa18166
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
Thu Feb 15 19:06:22 IST 2007 Mark McLoughlin <markmc@redhat.com>
* qemud/conf.c: fix a couple of typos
Thu Feb 15 19:05:48 IST 2007 Mark McLoughlin <markmc@redhat.com> Thu Feb 15 19:05:48 IST 2007 Mark McLoughlin <markmc@redhat.com>
* qemud/conf.c: fix segfault * qemud/conf.c: fix segfault

View File

@ -1663,9 +1663,9 @@ int qemudScanConfigDir(struct qemud_server *server,
/* Scan for all guest and network config files */ /* Scan for all guest and network config files */
int qemudScanConfigs(struct qemud_server *server) { int qemudScanConfigs(struct qemud_server *server) {
if (qemudScanConfigDir(server, server->configDir, 0) < 0) if (qemudScanConfigDir(server, server->configDir, 1) < 0)
return -1; return -1;
return qemudScanConfigDir(server, server->networkConfigDir, 1); return qemudScanConfigDir(server, server->networkConfigDir, 0);
} }
/* Simple grow-on-demand string buffer */ /* Simple grow-on-demand string buffer */
@ -1890,7 +1890,7 @@ char *qemudGenerateXML(struct qemud_server *server, struct qemud_vm *vm, int liv
goto no_memory; goto no_memory;
if (net->type == QEMUD_NET_NETWORK) { if (net->type == QEMUD_NET_NETWORK) {
if (qemudBufferPrintf(&buf, " <network name='%s", net->dst.network.name) < 0) if (qemudBufferPrintf(&buf, " <network name='%s'", net->dst.network.name) < 0)
goto no_memory; goto no_memory;
if (net->dst.network.tapifname[0] != '\0' && if (net->dst.network.tapifname[0] != '\0' &&