Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
ea4e5540
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看板
提交
ea4e5540
编写于
5月 21, 2013
作者:
O
Osier Yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
python: Remove the whitespace before ";"
上级
6da96569
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
10 addition
and
10 deletion
+10
-10
python/libvirt-lxc-override.c
python/libvirt-lxc-override.c
+2
-2
python/libvirt-override.c
python/libvirt-override.c
+8
-8
未找到文件。
python/libvirt-lxc-override.c
浏览文件 @
ea4e5540
...
...
@@ -81,7 +81,7 @@ libvirt_lxc_virDomainLxcOpenNamespace(PyObject *self ATTRIBUTE_UNUSED,
return
VIR_PY_NONE
;
py_retval
=
PyList_New
(
c_retval
);
for
(
i
=
0
;
i
<
c_retval
;
i
++
)
{
for
(
i
=
0
;
i
<
c_retval
;
i
++
)
{
PyObject
*
item
=
NULL
;
if
((
item
=
PyInt_FromLong
(
fdlist
[
i
]))
==
NULL
)
...
...
@@ -95,7 +95,7 @@ libvirt_lxc_virDomainLxcOpenNamespace(PyObject *self ATTRIBUTE_UNUSED,
return
py_retval
;
error:
for
(
i
=
0
;
i
<
c_retval
;
i
++
)
{
for
(
i
=
0
;
i
<
c_retval
;
i
++
)
{
VIR_FORCE_CLOSE
(
fdlist
[
i
]);
}
VIR_FREE
(
fdlist
);
...
...
python/libvirt-override.c
浏览文件 @
ea4e5540
...
...
@@ -81,7 +81,7 @@ getPyVirTypedParameter(const virTypedParameterPtr params, int nparams)
if
((
info
=
PyDict_New
())
==
NULL
)
return
NULL
;
for
(
i
=
0
;
i
<
nparams
;
i
++
)
{
for
(
i
=
0
;
i
<
nparams
;
i
++
)
{
switch
(
params
[
i
].
type
)
{
case
VIR_TYPED_PARAM_INT
:
val
=
PyInt_FromLong
(
params
[
i
].
value
.
i
);
...
...
@@ -1409,7 +1409,7 @@ libvirt_virDomainGetVcpus(PyObject *self ATTRIBUTE_UNUSED,
if
((
pycpumap
=
PyList_New
(
dominfo
.
nrVirtCpu
))
==
NULL
)
goto
cleanup
;
for
(
i
=
0
;
i
<
dominfo
.
nrVirtCpu
;
i
++
)
{
for
(
i
=
0
;
i
<
dominfo
.
nrVirtCpu
;
i
++
)
{
PyObject
*
info
=
PyTuple_New
(
4
);
PyObject
*
item
=
NULL
;
...
...
@@ -1441,12 +1441,12 @@ libvirt_virDomainGetVcpus(PyObject *self ATTRIBUTE_UNUSED,
Py_XDECREF
(
item
);
goto
cleanup
;
}
for
(
i
=
0
;
i
<
dominfo
.
nrVirtCpu
;
i
++
)
{
for
(
i
=
0
;
i
<
dominfo
.
nrVirtCpu
;
i
++
)
{
PyObject
*
info
=
PyTuple_New
(
cpunum
);
int
j
;
if
(
info
==
NULL
)
goto
cleanup
;
for
(
j
=
0
;
j
<
cpunum
;
j
++
)
{
for
(
j
=
0
;
j
<
cpunum
;
j
++
)
{
PyObject
*
item
=
NULL
;
if
((
item
=
PyBool_FromLong
(
VIR_CPU_USABLE
(
cpumap
,
cpumaplen
,
i
,
j
)))
==
NULL
||
PyTuple_SetItem
(
info
,
j
,
item
)
<
0
)
{
...
...
@@ -1950,7 +1950,7 @@ static int virConnectCredCallbackWrapper(virConnectCredentialPtr cred,
list
=
PyTuple_New
(
2
);
pycred
=
PyTuple_New
(
ncred
);
for
(
i
=
0
;
i
<
ncred
;
i
++
)
{
for
(
i
=
0
;
i
<
ncred
;
i
++
)
{
PyObject
*
pycreditem
;
pycreditem
=
PyList_New
(
5
);
Py_INCREF
(
Py_None
);
...
...
@@ -1985,7 +1985,7 @@ static int virConnectCredCallbackWrapper(virConnectCredentialPtr cred,
ret
=
PyLong_AsLong
(
pyret
);
if
(
ret
==
0
)
{
for
(
i
=
0
;
i
<
ncred
;
i
++
)
{
for
(
i
=
0
;
i
<
ncred
;
i
++
)
{
PyObject
*
pycreditem
;
PyObject
*
pyresult
;
char
*
result
=
NULL
;
...
...
@@ -2036,7 +2036,7 @@ libvirt_virConnectOpenAuth(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
int
i
;
if
(
VIR_ALLOC_N
(
auth
.
credtype
,
auth
.
ncredtype
)
<
0
)
return
VIR_PY_NONE
;
for
(
i
=
0
;
i
<
auth
.
ncredtype
;
i
++
)
{
for
(
i
=
0
;
i
<
auth
.
ncredtype
;
i
++
)
{
PyObject
*
val
;
val
=
PyList_GetItem
(
pycredtype
,
i
);
auth
.
credtype
[
i
]
=
(
int
)
PyLong_AsLong
(
val
);
...
...
@@ -5655,7 +5655,7 @@ libvirt_virConnectDomainEventGraphicsCallback(virConnectPtr conn ATTRIBUTE_UNUSE
libvirt_constcharPtrWrap
(
remote
->
service
));
pyobj_subject
=
PyList_New
(
subject
->
nidentity
);
for
(
i
=
0
;
i
<
subject
->
nidentity
;
i
++
)
{
for
(
i
=
0
;
i
<
subject
->
nidentity
;
i
++
)
{
PyObject
*
pair
=
PyTuple_New
(
2
);
PyTuple_SetItem
(
pair
,
0
,
libvirt_constcharPtrWrap
(
subject
->
identities
[
i
].
type
));
PyTuple_SetItem
(
pair
,
1
,
libvirt_constcharPtrWrap
(
subject
->
identities
[
i
].
name
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录