Cleanup: Make add_sample_data() local to translation unit

This function in parse_csv.c was not used anywhere. Make
it of static linkage.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2018-09-28 10:29:15 +02:00 committed by Dirk Hohndel
parent 43c9178bf7
commit 2e6df623bb
2 changed files with 1 additions and 2 deletions

View file

@ -47,7 +47,7 @@ static timestamp_t parse_date(const char *date)
return utc_mktime(&tm); return utc_mktime(&tm);
} }
void add_sample_data(struct sample *sample, enum csv_format type, double val) static void add_sample_data(struct sample *sample, enum csv_format type, double val)
{ {
switch (type) { switch (type) {
case CSV_DEPTH: case CSV_DEPTH:

View file

@ -17,7 +17,6 @@ enum csv_format {
#define MAXCOLDIGITS 10 #define MAXCOLDIGITS 10
void add_sample_data(struct sample *sample, enum csv_format type, double val);
int parse_csv_file(const char *filename, char **params, int pnr, const char *csvtemplate); int parse_csv_file(const char *filename, char **params, int pnr, const char *csvtemplate);
int try_to_open_csv(struct memblock *mem, enum csv_format type); int try_to_open_csv(struct memblock *mem, enum csv_format type);
int parse_txt_file(const char *filename, const char *csv); int parse_txt_file(const char *filename, const char *csv);