提交 841dd882 编写于 作者: D Daniel P. Berrange

Fix misc compile warnings

上级 db162cb2
Thu Jun 12 14:46:08 BST 2008 Daniel P. Berrange <berrange@redhat.com>
* src/lxc_driver.c, src/openvz_driver.c: Add missing driver
entry points
* src/lxc_conf.c: Re-arrange headers to comply with standard
* tests/testutils.c: Fix use of signed/unsigned ints
Thu Jun 12 14:46:08 BST 2008 Daniel P. Berrange <berrange@redhat.com>
* src/qemu_driver.c: Fix saving of iptables rules
......
......@@ -1202,6 +1202,8 @@ static virDriver lxcDriver = {
NULL, /* domainMigrateFinish */
NULL, /* domainBlockStats */
NULL, /* domainInterfaceStats */
NULL, /* domainBlockPeek */
NULL, /* domainMemoryPeek */
NULL, /* nodeGetCellsFreeMemory */
NULL, /* getFreeMemory */
};
......
......@@ -41,13 +41,14 @@
#include <unistd.h>
#include <limits.h>
#include <errno.h>
#include <string.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/xpath.h>
#include <libxml/uri.h>
#include "libvirt/virterror.h"
#include "internal.h"
#include "openvz_driver.h"
#include "openvz_conf.h"
......@@ -55,8 +56,6 @@
#include "buf.h"
#include "memory.h"
#include <string.h>
static char *openvzLocateConfDir(void);
static void error (virConnectPtr conn, virErrorNumber code, const char *info);
static struct openvz_vm_def *openvzParseXML(virConnectPtr conn, xmlDocPtr xml);
......
......@@ -761,6 +761,8 @@ static virDriver openvzDriver = {
NULL, /* domainMigrateFinish */
NULL, /* domainBlockStats */
NULL, /* domainInterfaceStats */
NULL, /* domainBlockPeek */
NULL, /* domainMemoryPeek */
NULL, /* nodeGetCellsFreeMemory */
NULL, /* nodeGetFreeMemory */
};
......@@ -770,6 +772,7 @@ static virStateDriver openvzStateDriver = {
openvzShutdown,
openvzReload,
openvzActive,
NULL, /* sigHandler */
};
int openvzRegister(void) {
......
......@@ -329,10 +329,7 @@ int virtTestMain(int argc,
int oomCount;
if ((debugStr = getenv("VIR_TEST_DEBUG")) != NULL) {
if (virStrToLong_i(debugStr, NULL, 10, &testDebug) < 0)
testDebug = 0;
if (testDebug < 0)
if (virStrToLong_ui(debugStr, NULL, 10, &testDebug) < 0)
testDebug = 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册