Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
3ed42b00
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3ed42b00
编写于
1月 31, 2010
作者:
M
Matthias Bolte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
opennebula: Remove unnecessary casts
上级
af253617
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
18 addition
and
18 deletion
+18
-18
src/opennebula/one_driver.c
src/opennebula/one_driver.c
+18
-18
未找到文件。
src/opennebula/one_driver.c
浏览文件 @
3ed42b00
...
...
@@ -108,7 +108,7 @@ static int oneIsSecure(virConnectPtr conn ATTRIBUTE_UNUSED)
static
virDomainPtr
oneDomainLookupByID
(
virConnectPtr
conn
,
int
id
)
{
one_driver_t
*
driver
=
(
one_driver_t
*
)
conn
->
privateData
;
one_driver_t
*
driver
=
conn
->
privateData
;
virDomainPtr
dom
=
NULL
;
virDomainObjPtr
vm
=
NULL
;
...
...
@@ -137,7 +137,7 @@ return_point:
static
virDomainPtr
oneDomainLookupByUUID
(
virConnectPtr
conn
,
const
unsigned
char
*
uuid
)
{
one_driver_t
*
driver
=
(
one_driver_t
*
)
conn
->
privateData
;
one_driver_t
*
driver
=
conn
->
privateData
;
virDomainPtr
dom
=
NULL
;
virDomainObjPtr
vm
=
NULL
;
...
...
@@ -165,7 +165,7 @@ return_point:
static
virDomainPtr
oneDomainLookupByName
(
virConnectPtr
conn
,
const
char
*
name
)
{
one_driver_t
*
driver
=
(
one_driver_t
*
)
conn
->
privateData
;
one_driver_t
*
driver
=
conn
->
privateData
;
virDomainObjPtr
vm
=
NULL
;
virDomainPtr
dom
=
NULL
;
...
...
@@ -192,7 +192,7 @@ return_point:
static
int
oneListDomains
(
virConnectPtr
conn
,
int
*
ids
,
int
nids
)
{
one_driver_t
*
driver
=
(
one_driver_t
*
)
conn
->
privateData
;
one_driver_t
*
driver
=
conn
->
privateData
;
int
n
;
oneDriverLock
(
driver
);
...
...
@@ -204,7 +204,7 @@ static int oneListDomains(virConnectPtr conn, int *ids, int nids)
static
int
oneNumDomains
(
virConnectPtr
conn
)
{
one_driver_t
*
driver
=
(
one_driver_t
*
)
conn
->
privateData
;
one_driver_t
*
driver
=
conn
->
privateData
;
int
n
;
oneDriverLock
(
driver
);
...
...
@@ -216,7 +216,7 @@ static int oneNumDomains(virConnectPtr conn)
static
int
oneListDefinedDomains
(
virConnectPtr
conn
,
char
**
const
names
,
int
nnames
)
{
one_driver_t
*
driver
=
(
one_driver_t
*
)
conn
->
privateData
;
one_driver_t
*
driver
=
conn
->
privateData
;
int
n
;
oneDriverLock
(
driver
);
...
...
@@ -228,7 +228,7 @@ static int oneListDefinedDomains(virConnectPtr conn,
static
int
oneNumDefinedDomains
(
virConnectPtr
conn
)
{
one_driver_t
*
driver
=
(
one_driver_t
*
)
conn
->
privateData
;
one_driver_t
*
driver
=
conn
->
privateData
;
int
n
;
oneDriverLock
(
driver
);
...
...
@@ -240,7 +240,7 @@ static int oneNumDefinedDomains(virConnectPtr conn)
static
virDomainPtr
oneDomainDefine
(
virConnectPtr
conn
,
const
char
*
xml
)
{
one_driver_t
*
driver
=
(
one_driver_t
*
)
conn
->
privateData
;
one_driver_t
*
driver
=
conn
->
privateData
;
virDomainDefPtr
def
;
virDomainObjPtr
vm
;
virDomainPtr
dom
=
NULL
;
...
...
@@ -272,7 +272,7 @@ return_point:
static
int
oneDomainUndefine
(
virDomainPtr
dom
)
{
one_driver_t
*
driver
=
(
one_driver_t
*
)
dom
->
conn
->
privateData
;
one_driver_t
*
driver
=
dom
->
conn
->
privateData
;
virDomainObjPtr
vm
=
NULL
;
int
ret
=-
1
;
...
...
@@ -302,7 +302,7 @@ return_point:
static
int
oneDomainGetInfo
(
virDomainPtr
dom
,
virDomainInfoPtr
info
)
{
one_driver_t
*
driver
=
(
one_driver_t
*
)
dom
->
conn
->
privateData
;
one_driver_t
*
driver
=
dom
->
conn
->
privateData
;
struct
timeval
tv
;
virDomainObjPtr
vm
;
oneDriverLock
(
driver
);
...
...
@@ -377,7 +377,7 @@ static int oneDomainGetInfo(virDomainPtr dom,
static
char
*
oneGetOSType
(
virDomainPtr
dom
)
{
one_driver_t
*
driver
=
(
one_driver_t
*
)
dom
->
conn
->
privateData
;
one_driver_t
*
driver
=
dom
->
conn
->
privateData
;
virDomainObjPtr
vm
=
NULL
;
char
*
ret
=
NULL
;
...
...
@@ -403,7 +403,7 @@ cleanup:
static
int
oneDomainStart
(
virDomainPtr
dom
)
{
virConnectPtr
conn
=
dom
->
conn
;
one_driver_t
*
driver
=
(
one_driver_t
*
)(
conn
->
privateData
)
;
one_driver_t
*
driver
=
conn
->
privateData
;
virDomainObjPtr
vm
;
int
ret
=
-
1
;
int
oneid
;
...
...
@@ -436,7 +436,7 @@ static virDomainPtr
oneDomainCreateAndStart
(
virConnectPtr
conn
,
const
char
*
xml
,
unsigned
int
flags
ATTRIBUTE_UNUSED
)
{
one_driver_t
*
driver
=
(
one_driver_t
*
)
conn
->
privateData
;
one_driver_t
*
driver
=
conn
->
privateData
;
virDomainObjPtr
vm
=
NULL
;
virDomainDefPtr
def
;
virDomainPtr
dom
=
NULL
;
...
...
@@ -486,7 +486,7 @@ return_point:
static
int
oneDomainShutdown
(
virDomainPtr
dom
)
{
one_driver_t
*
driver
=
(
one_driver_t
*
)
dom
->
conn
->
privateData
;
one_driver_t
*
driver
=
dom
->
conn
->
privateData
;
virDomainObjPtr
vm
;
int
ret
=-
1
;
...
...
@@ -520,7 +520,7 @@ return_point:
static
int
oneDomainDestroy
(
virDomainPtr
dom
)
{
one_driver_t
*
driver
=
(
one_driver_t
*
)
dom
->
conn
->
privateData
;
one_driver_t
*
driver
=
dom
->
conn
->
privateData
;
virDomainObjPtr
vm
;
int
ret
=-
1
;
...
...
@@ -556,7 +556,7 @@ return_point:
static
int
oneDomainSuspend
(
virDomainPtr
dom
)
{
one_driver_t
*
driver
=
dom
->
conn
->
privateData
;
one_driver_t
*
driver
=
dom
->
conn
->
privateData
;
virDomainObjPtr
vm
;
int
ret
=-
1
;
...
...
@@ -590,7 +590,7 @@ return_point:
static
int
oneDomainResume
(
virDomainPtr
dom
)
{
one_driver_t
*
driver
=
dom
->
conn
->
privateData
;
one_driver_t
*
driver
=
dom
->
conn
->
privateData
;
virDomainObjPtr
vm
;
int
ret
=-
1
;
...
...
@@ -698,7 +698,7 @@ static int oneGetAutostart(virDomainPtr domain ATTRIBUTE_UNUSED, int *autostart)
}
static
char
*
oneGetCapabilities
(
virConnectPtr
conn
){
one_driver_t
*
privconn
=
conn
->
privateData
;
one_driver_t
*
privconn
=
conn
->
privateData
;
char
*
xml
;
oneDriverLock
(
privconn
);
if
((
xml
=
virCapabilitiesFormatXML
(
privconn
->
caps
))
==
NULL
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录