提交 15498a76 编写于 作者: M Marcos Paulo de Souza 提交者: Michal Privoznik

esx_driver: Simplify IsEncrypted and IsSecure

Signed-off-by: NMarcos Paulo de Souza <marcos.souza.org@gmail.com>
上级 4539301b
......@@ -4000,11 +4000,7 @@ esxConnectIsEncrypted(virConnectPtr conn)
{
esxPrivate *priv = conn->privateData;
if (STRCASEEQ(priv->parsedUri->transport, "https")) {
return 1;
} else {
return 0;
}
return STRCASEEQ(priv->parsedUri->transport, "https");
}
......@@ -4014,11 +4010,7 @@ esxConnectIsSecure(virConnectPtr conn)
{
esxPrivate *priv = conn->privateData;
if (STRCASEEQ(priv->parsedUri->transport, "https")) {
return 1;
} else {
return 0;
}
return STRCASEEQ(priv->parsedUri->transport, "https");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册