Skip to content

Commit a97900a

Browse files
committed
Refactoring
1 parent 9271886 commit a97900a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

kubernetes/config/authn_plugin/authn_plugin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ authn_plugin_t *create_authn_plugin(const char *name)
5454

5555
return plugin;
5656

57-
error:
57+
error:
5858
free_authn_plugin(plugin);
5959
plugin = NULL;
6060
return plugin;

kubernetes/config/exec_provider.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ int kube_exec_and_get_result(ExecCredential_t * exec_credential, const kubeconfi
102102

103103
rc = kubeyaml_parse_exec_crendential(exec_credential, result_string);
104104

105-
end:
105+
end:
106106
if (result_string) {
107107
free(result_string);
108108
}

kubernetes/config/kube_config.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ static int kubeconfig_exec(kubeconfig_property_t * current_user)
186186
goto end;
187187
}
188188

189-
end:
189+
end:
190190
exec_credential_free(exec_output);
191191
exec_output = NULL;
192192
return rc;
@@ -292,7 +292,7 @@ static int kuberconfig_auth_provider(kubeconfig_property_t * current_user, kubec
292292
}
293293
current_user->token = strdup(token);
294294

295-
end:
295+
end:
296296
free_authn_plugin(plugin);
297297
plugin = NULL;
298298
return rc;
@@ -386,7 +386,7 @@ int load_kube_config(char **pBasePath, sslConfig_t ** pSslConfig, list_t ** pApi
386386
}
387387
}
388388

389-
end:
389+
end:
390390
kubeconfig_free(kubeconfig);
391391
kubeconfig = NULL;
392392
return rc;

kubernetes/websocket/kube_exec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ int kube_exec(wsclient_t * wsc, const char *namespace_, const char *pod_name, co
8383
char ws_path[WS_PATH_BUFFER_SIZE];
8484
memset(ws_path, 0, sizeof(ws_path));
8585
snprintf(ws_path, WS_PATH_BUFFER_SIZE, ws_path_template,
86-
namespace_, pod_name, 1 == stdin ? TRUE_STRING : FALSE_STRING, 1 == stdout ? TRUE_STRING : FALSE_STRING, 1 == tty ? TRUE_STRING : FALSE_STRING, command_string_in_url);
86+
namespace_, pod_name, 1 == _stdin ? TRUE_STRING : FALSE_STRING, 1 == _stdout ? TRUE_STRING : FALSE_STRING, 1 == tty ? TRUE_STRING : FALSE_STRING, command_string_in_url);
8787

8888
if (container_name && container_name[0] != '\0') {
8989
int length_of_ws_path_with_container = strlen(ws_path) + strlen(CONTAINER_PREFIX) + strlen(container_name);

0 commit comments

Comments
 (0)