mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Make a few functions of static linkage
Make functions in core/file.c, core/parse.c and core/import-csv.c that were not used outside their translation unit of static linkage. parse_date is moved from core/file.c to core/import-csv.c, since it is used only there. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
fa5865a566
commit
afeb2e3652
6 changed files with 43 additions and 49 deletions
|
@ -899,7 +899,7 @@ static void try_to_fill_sample(struct sample *sample, const char *name, char *bu
|
|||
nonmatch("sample", name, buf);
|
||||
}
|
||||
|
||||
void try_to_fill_userid(const char *name, char *buf)
|
||||
static void try_to_fill_userid(const char *name, char *buf)
|
||||
{
|
||||
(void) name;
|
||||
if (prefs.save_userid_local)
|
||||
|
@ -1557,7 +1557,7 @@ static void reset_all(void)
|
|||
* but once we decode the HTML encoded characters they turn
|
||||
* into UTF-8 instead. So skip the incorrect encoding
|
||||
* declaration and decode the HTML encoded characters */
|
||||
const char *preprocess_divelog_de(const char *buffer)
|
||||
static const char *preprocess_divelog_de(const char *buffer)
|
||||
{
|
||||
char *ret = strstr(buffer, "<DIVELOGSDATA>");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue