Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/dotconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ void dotconf_cleanup(configfile_t * configfile)
free(configfile);
}

configfile_t *dotconf_create(char *fname, const configoption_t * options,
configfile_t *dotconf_create(const char *fname, const configoption_t * options,
context_t * context, unsigned long flags)
{
char *dc_env = NULL;
Expand Down Expand Up @@ -1423,7 +1423,7 @@ char *get_cwd(void)
return buf;
}

char *get_path(char *name)
char *get_path(const char *name)
{
char *tmp;
char *buf = NULL;
Expand Down
2 changes: 1 addition & 1 deletion src/dotconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ extern "C" {
};

/* ------ dotconf_create() - create the configfile_t needed for further dot.conf fun ------------ */
configfile_t *dotconf_create(char *, const configoption_t *,
configfile_t *dotconf_create(const char *, const configoption_t *,
context_t *, unsigned long);

/* ------ dotconf_cleanup() - tidy up behind dotconf_create and the parser dust ----------------- */
Expand Down
2 changes: 1 addition & 1 deletion src/dotconf_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@

char *get_cwd(void);

char *get_path(char *name);
char *get_path(const char *name);

#endif