From 9f5e8d12f05fb24c915a5266a1e908a75c8aed08 Mon Sep 17 00:00:00 2001 From: Thibault "bui" Koechlin Date: Thu, 28 Dec 2017 17:04:06 +0100 Subject: Clang-format pass - `clang-format --style="{BasedOnStyle: google, SortIncludes: false}" -i snuffleu*.c sp_*.c sp_*.h` - Update the documentation accordingly--- src/sp_config_utils.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/sp_config_utils.c') diff --git a/src/sp_config_utils.c b/src/sp_config_utils.c index bf558d4..20d4d79 100644 --- a/src/sp_config_utils.c +++ b/src/sp_config_utils.c @@ -26,14 +26,14 @@ int parse_keywords(sp_config_functions *funcs, char *line) { if (*line) { sp_log_err("config", "Trailing chars '%s' at the end of '%s' on line %zu.", - line, original_line, sp_line_no); + line, original_line, sp_line_no); return -1; } return 0; } char *get_param(size_t *consumed, char *restrict line, sp_type type, - const char *restrict keyword) { + const char *restrict keyword) { enum { IN_ESCAPE, NONE } state = NONE; char *original_line = line; size_t j = 0; @@ -86,10 +86,12 @@ char *get_param(size_t *consumed, char *restrict line, sp_type type, } err: if (0 == j) { - sp_log_err("error", "A valid string as parameter is expected on line %zu.", sp_line_no); + sp_log_err("error", "A valid string as parameter is expected on line %zu.", + sp_line_no); } else { sp_log_err("error", - "There is an issue with the parsing of '%s': it doesn't look like a valid string on line %zu.", + "There is an issue with the parsing of '%s': it doesn't look " + "like a valid string on line %zu.", original_line ? original_line : "NULL", sp_line_no); } line = NULL; @@ -104,8 +106,8 @@ zend_always_inline sp_list_node *parse_functions_list(char *value) { } sp_list_node *list = sp_list_new(); - char* tmp = strdup(value); - char* function_name; + char *tmp = strdup(value); + char *function_name; char *next_token = tmp; while ((function_name = strtok_r(NULL, sep, &next_token))) { sp_list_prepend(list, strdup(function_name)); -- cgit v1.3