summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-09-28 10:29:15 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-28 07:47:39 -0700
commit2e6df623bbf582e1177afb68af3bdb7843fca9d9 (patch)
treed78764a2e41fc28639d5ef8072da64ecd80fd0ae /core
parent43c9178bf706ed5f75dd027b0ffe67d8ca1fe4ce (diff)
downloadsubsurface-2e6df623bbf582e1177afb68af3bdb7843fca9d9.tar.gz
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>
Diffstat (limited to 'core')
-rw-r--r--core/import-csv.c2
-rw-r--r--core/import-csv.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/core/import-csv.c b/core/import-csv.c
index 8d6c229fd..b3ff4261f 100644
--- a/core/import-csv.c
+++ b/core/import-csv.c
@@ -47,7 +47,7 @@ static timestamp_t parse_date(const char *date)
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) {
case CSV_DEPTH:
diff --git a/core/import-csv.h b/core/import-csv.h
index 720e368ed..bfaf7fe38 100644
--- a/core/import-csv.h
+++ b/core/import-csv.h
@@ -17,7 +17,6 @@ enum csv_format {
#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 try_to_open_csv(struct memblock *mem, enum csv_format type);
int parse_txt_file(const char *filename, const char *csv);