Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
77e2d377
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看板
提交
77e2d377
编写于
5月 21, 2013
作者:
O
Osier Yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
src/remote: Remove the whitespace before ";"
上级
13dbad40
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
12 deletion
+12
-12
src/remote/remote_driver.c
src/remote/remote_driver.c
+12
-12
未找到文件。
src/remote/remote_driver.c
浏览文件 @
77e2d377
...
...
@@ -524,7 +524,7 @@ doRemoteOpen(virConnectPtr conn,
int
i
;
if
(
conn
->
uri
)
{
for
(
i
=
0
;
i
<
conn
->
uri
->
paramsCount
;
i
++
)
{
for
(
i
=
0
;
i
<
conn
->
uri
->
paramsCount
;
i
++
)
{
virURIParamPtr
var
=
&
conn
->
uri
->
params
[
i
];
EXTRACT_URI_ARG_STR
(
"name"
,
name
);
EXTRACT_URI_ARG_STR
(
"command"
,
command
);
...
...
@@ -1335,7 +1335,7 @@ remoteNodeGetCellsFreeMemory(virConnectPtr conn,
(
xdrproc_t
)
xdr_remote_node_get_cells_free_memory_ret
,
(
char
*
)
&
ret
)
==
-
1
)
goto
done
;
for
(
i
=
0
;
i
<
ret
.
cells
.
cells_len
;
i
++
)
for
(
i
=
0
;
i
<
ret
.
cells
.
cells_len
;
i
++
)
freeMems
[
i
]
=
ret
.
cells
.
cells_val
[
i
];
xdr_free
((
xdrproc_t
)
xdr_remote_node_get_cells_free_memory_ret
,
(
char
*
)
&
ret
);
...
...
@@ -3540,7 +3540,7 @@ remoteAuthenticate(virConnectPtr conn, struct private_data *priv,
_
(
"unknown authentication type %s"
),
authtype
);
return
-
1
;
}
for
(
i
=
0
;
i
<
ret
.
types
.
types_len
;
i
++
)
{
for
(
i
=
0
;
i
<
ret
.
types
.
types_len
;
i
++
)
{
if
(
ret
.
types
.
types_val
[
i
]
==
want
)
type
=
want
;
}
...
...
@@ -3683,7 +3683,7 @@ static sasl_callback_t *remoteAuthMakeCallbacks(int *credtype, int ncredtype)
return
NULL
;
}
for
(
i
=
0
,
n
=
0
;
i
<
ncredtype
;
i
++
)
{
for
(
i
=
0
,
n
=
0
;
i
<
ncredtype
;
i
++
)
{
int
id
=
remoteAuthCredVir2SASL
(
credtype
[
i
]);
if
(
id
!=
0
)
cbs
[
n
++
].
id
=
id
;
...
...
@@ -3712,7 +3712,7 @@ static int remoteAuthMakeCredentials(sasl_interact_t *interact,
if
(
!
cred
)
return
-
1
;
for
(
ninteract
=
0
,
*
ncred
=
0
;
interact
[
ninteract
].
id
!=
0
;
ninteract
++
)
{
for
(
ninteract
=
0
,
*
ncred
=
0
;
interact
[
ninteract
].
id
!=
0
;
ninteract
++
)
{
if
(
interact
[
ninteract
].
result
)
continue
;
(
*
ncred
)
++
;
...
...
@@ -3721,7 +3721,7 @@ static int remoteAuthMakeCredentials(sasl_interact_t *interact,
if
(
VIR_ALLOC_N
(
*
cred
,
*
ncred
)
<
0
)
return
-
1
;
for
(
ninteract
=
0
,
*
ncred
=
0
;
interact
[
ninteract
].
id
!=
0
;
ninteract
++
)
{
for
(
ninteract
=
0
,
*
ncred
=
0
;
interact
[
ninteract
].
id
!=
0
;
ninteract
++
)
{
if
(
interact
[
ninteract
].
result
)
continue
;
...
...
@@ -3756,7 +3756,7 @@ static void remoteAuthFillInteract(virConnectCredentialPtr cred,
sasl_interact_t
*
interact
)
{
int
ninteract
,
ncred
;
for
(
ninteract
=
0
,
ncred
=
0
;
interact
[
ninteract
].
id
!=
0
;
ninteract
++
)
{
for
(
ninteract
=
0
,
ncred
=
0
;
interact
[
ninteract
].
id
!=
0
;
ninteract
++
)
{
if
(
interact
[
ninteract
].
result
)
continue
;
interact
[
ninteract
].
result
=
cred
[
ncred
].
result
;
...
...
@@ -3796,7 +3796,7 @@ static int remoteAuthFillFromConfig(virConnectPtr conn,
goto
cleanup
;
}
for
(
ninteract
=
0
;
state
->
interact
[
ninteract
].
id
!=
0
;
ninteract
++
)
{
for
(
ninteract
=
0
;
state
->
interact
[
ninteract
].
id
!=
0
;
ninteract
++
)
{
const
char
*
value
=
NULL
;
switch
(
state
->
interact
[
ninteract
].
id
)
{
...
...
@@ -3846,7 +3846,7 @@ static void remoteAuthInteractStateClear(struct remoteAuthInteractState *state,
if
(
!
state
)
return
;
for
(
i
=
0
;
i
<
state
->
ncred
;
i
++
)
for
(
i
=
0
;
i
<
state
->
ncred
;
i
++
)
VIR_FREE
(
state
->
cred
[
i
].
result
);
VIR_FREE
(
state
->
cred
);
state
->
ncred
=
0
;
...
...
@@ -4189,7 +4189,7 @@ remoteAuthPolkit(virConnectPtr conn, struct private_data *priv,
/* Auth failed. Ask client to obtain it and check again. */
if
(
auth
&&
auth
->
cb
)
{
/* Check if the necessary credential type for PolicyKit is supported */
for
(
i
=
0
;
i
<
auth
->
ncredtype
;
i
++
)
{
for
(
i
=
0
;
i
<
auth
->
ncredtype
;
i
++
)
{
if
(
auth
->
credtype
[
i
]
==
VIR_CRED_EXTERNAL
)
allowcb
=
1
;
}
...
...
@@ -4488,7 +4488,7 @@ remoteDomainBuildEventGraphics(virNetClientProgramPtr prog ATTRIBUTE_UNUSED,
if
(
VIR_ALLOC_N
(
subject
->
identities
,
msg
->
subject
.
subject_len
)
<
0
)
goto
no_memory
;
subject
->
nidentity
=
msg
->
subject
.
subject_len
;
for
(
i
=
0
;
i
<
subject
->
nidentity
;
i
++
)
{
for
(
i
=
0
;
i
<
subject
->
nidentity
;
i
++
)
{
if
(
!
(
subject
->
identities
[
i
].
type
=
strdup
(
msg
->
subject
.
subject_val
[
i
].
type
))
||
!
(
subject
->
identities
[
i
].
name
=
strdup
(
msg
->
subject
.
subject_val
[
i
].
name
)))
goto
no_memory
;
...
...
@@ -4518,7 +4518,7 @@ no_memory:
VIR_FREE
(
remoteAddr
);
}
if
(
subject
)
{
for
(
i
=
0
;
i
<
subject
->
nidentity
;
i
++
)
{
for
(
i
=
0
;
i
<
subject
->
nidentity
;
i
++
)
{
VIR_FREE
(
subject
->
identities
[
i
].
type
);
VIR_FREE
(
subject
->
identities
[
i
].
name
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录