code style check and fix

This commit is contained in:
Hui Yu
2023-01-16 15:42:58 +08:00
parent 2887dd5fee
commit 1ab7d304d3

View File

@@ -57,7 +57,8 @@ mapping :: = MAPPING - START(node node) * MAPPING - END
#define VALUE_TRUE_LOWERCASE_STRING "true"
static char *load_file_content(const char *path) {
static char *load_file_content(const char *path)
{
static char fname[] = "load_file_content()";
@@ -73,8 +74,7 @@ static char *load_file_content(const char *path) {
long s = ftell(fh);
rewind(fh);
buffer = malloc(s);
if ( buffer != NULL )
{
if (buffer != NULL) {
fread(buffer, s, 1, fh);
}
fclose(fh);
@@ -1119,4 +1119,3 @@ int kubeyaml_save_kubeconfig(const kubeconfig_t * kubeconfig)
return -1;
}