From e092cabc433d368c759924f6b7c693ddb61673d3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wolfgang=20St=C3=B6ggl?= Date: Sat, 13 Apr 2019 22:51:36 +0200 Subject: [PATCH] Indent rrd_create.c - Add typename GList to .indent.pro - indent rrd_create.c using GNU indent 2.2.12 --- .indent.pro | 1 + src/rrd_create.c | 56 ++++++++++++++++++++++++------------------------ 2 files changed, 29 insertions(+), 28 deletions(-) diff --git a/.indent.pro b/.indent.pro index 422a1c74..78759e1e 100644 --- a/.indent.pro +++ b/.indent.pro @@ -37,6 +37,7 @@ -TCmdInfo -TFIFOqueue -TFnv32_t +-TGList -TRRDFUNC -TRRD_FUNCTION -TRRD_FUNCTION_V diff --git a/src/rrd_create.c b/src/rrd_create.c index ff501a62..ed3c653b 100644 --- a/src/rrd_create.c +++ b/src/rrd_create.c @@ -58,17 +58,17 @@ static int rrd_init_data( rrd_t *rrd); static int rrd_prefill_data( rrd_t *rrd, - const GList * sources_rrd_files, - mapping_t * mappings, + const GList *sources_rrd_files, + mapping_t *mappings, int mappings_cnt); static int positive_mod( int a, int b); static void init_mapping( - mapping_t * mapping); + mapping_t *mapping); static void free_mapping( - mapping_t * mapping); + mapping_t *mapping); static void parseGENERIC_DS( const char *def, @@ -331,7 +331,7 @@ int parseDS( void *key_hash, long (*lookup)(void *, char *), - mapping_t * mapping, + mapping_t *mapping, const char **require_version) { int rc = -1; @@ -1634,7 +1634,7 @@ typedef struct { } coverage_t; static inline void set_interval( - coverage_t * c, + coverage_t *c, int covered, time_t start, time_t end) @@ -1646,7 +1646,7 @@ static inline void set_interval( #ifdef DEBUG_PREFILL static void dump_coverage_array( - const coverage_t * current_coverage, + const coverage_t *current_coverage, const int *coverage_array_size) { for (int i = 0; i < *coverage_array_size; i++) { @@ -1658,7 +1658,7 @@ static void dump_coverage_array( #endif static coverage_t *add_coverage( - coverage_t * current_coverage, + coverage_t *current_coverage, int *coverage_array_size, time_t start, time_t end, @@ -1869,7 +1869,7 @@ static coverage_t *add_coverage( #if 0 static long total_coverage( - const coverage_t * coverage, + const coverage_t *coverage, const int *array_size) { long total = 0; @@ -1940,8 +1940,8 @@ static rrd_value_t prefill_finish( } static int order_candidates( - candidate_t * a, - candidate_t * b, + candidate_t *a, + candidate_t *b, const candidate_t UNUSED(*target)) { enum cf_en acf = rrd_cf_conv(a->rra->cf_nam); @@ -1999,9 +1999,9 @@ static int select_create_candidates( } static void prefill_bin( - candidate_t * target, + candidate_t *target, int cnt, - const candidate_t * candidates, + const candidate_t *candidates, int candidate_cnt) { unsigned long k; @@ -2124,8 +2124,8 @@ static void prefill_bin( * because there is generally no way to deduce the input data from an RRA bin. */ static void prefill_pdp_prep( - candidate_t * target, - const candidate_t * candidates, + candidate_t *target, + const candidate_t *candidates, int candidate_cnt) { rrd_t *rrd = target->rrd; @@ -2225,8 +2225,8 @@ static void get_cdp_start_end( } static void prefill_cdp_prep( - candidate_t * target, - candidate_t * candidates, + candidate_t *target, + candidate_t *candidates, int candidate_cnt, long cdp_rra_index) { @@ -2349,7 +2349,7 @@ static void prefill_cdp_prep( static unsigned long find_ds_match( const ds_def_t *ds_def, const rrd_t *src_rrd, - mapping_t * mapping) + mapping_t *mapping) { unsigned long source_ds_index; const char *looked_for_ds_name = ds_def->ds_nam; @@ -2371,7 +2371,7 @@ static unsigned long find_ds_match( static int find_mapping( const char *ds_nam, - const mapping_t * mappings, + const mapping_t *mappings, int mappings_cnt) { int i; @@ -2388,13 +2388,13 @@ static int find_mapping( */ static candidate_t *find_matching_candidates( - const candidate_t * target, - const GList * sources, + const candidate_t *target, + const GList *sources, int *candidate_cnt, - mapping_t * mappings, + mapping_t *mappings, int mappings_cnt, - candidate_selectfunc_t * select_func, - compar_ex_t * order_func) + candidate_selectfunc_t *select_func, + compar_ex_t *order_func) { if (select_func == NULL) return NULL; @@ -2620,8 +2620,8 @@ static int cdp_match( static int rrd_prefill_data( rrd_t *rrd, - const GList * sources, - mapping_t * mappings, + const GList *sources, + mapping_t *mappings, int mappings_cnt) { int rc = -1; @@ -2853,7 +2853,7 @@ int row_for_time( } static void init_mapping( - mapping_t * mapping) + mapping_t *mapping) { if (!mapping) return; @@ -2864,7 +2864,7 @@ static void init_mapping( } static void free_mapping( - mapping_t * mapping) + mapping_t *mapping) { if (!mapping) return; -- 2.47.2