From: Dimitri Papadopoulos <3350651+DimitriPapadopoulos@users.noreply.gitlab.com> Date: Wed, 16 Jun 2021 11:27:25 +0000 (+0200) Subject: Fix suspect code indent X-Git-Tag: v8.20~118^2~2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=789e04ed63ace8b0da95fbe1538ac6a61af5504d;p=users%2Fdwmw2%2Fopenconnect.git Fix suspect code indent Warnings by checkpatch.pl. I have fixed actual errors and left actual conscious decisions. Signed-off-by: Dimitri Papadopoulos <3350651+DimitriPapadopoulos@users.noreply.gitlab.com> --- diff --git a/auth-common.c b/auth-common.c index 1f3fa4dc..8d7ea39d 100644 --- a/auth-common.c +++ b/auth-common.c @@ -74,7 +74,7 @@ int xmlnode_match_prop(xmlNode *xml_node, const char *name, const char *match) return -ENOENT; if (strcmp(str, match)) - ret = -EEXIST; + ret = -EEXIST; free(str); return ret; diff --git a/auth-globalprotect.c b/auth-globalprotect.c index a698cb43..b1046911 100644 --- a/auth-globalprotect.c +++ b/auth-globalprotect.c @@ -431,7 +431,7 @@ static int parse_portal_xml(struct openconnect_info *vpninfo, xmlNode *xml_node, if (xmlnode_is_named(x2, "external")) for (x3 = x2->children; x3; x3 = x3->next) if (xmlnode_is_named(x3, "list")) - gateways = x3; + gateways = x3; } else if (xmlnode_is_named(x, "hip-collection")) { for (x2 = x->children; x2; x2 = x2->next) { if (!xmlnode_get_val(x2, "hip-report-interval", &hip_interval)) { @@ -656,7 +656,7 @@ static int gpst_login(struct openconnect_info *vpninfo, int portal, struct login goto replay_form; } } else - break; + break; } } diff --git a/auth.c b/auth.c index f0747830..8e40f738 100644 --- a/auth.c +++ b/auth.c @@ -89,7 +89,7 @@ static int parse_auth_choice(struct openconnect_info *vpninfo, struct oc_auth_fo /* Return early when there is a