summaryrefslogtreecommitdiff
path: root/src/helper
diff options
context:
space:
mode:
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/configuration.c2
-rw-r--r--src/helper/configuration.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/helper/configuration.c b/src/helper/configuration.c
index e9a13ead..6c2bf474 100644
--- a/src/helper/configuration.c
+++ b/src/helper/configuration.c
@@ -55,7 +55,7 @@ void add_config_command (const char *cfg)
}
/* return full path or NULL according to search rules */
-char *find_file(char *file)
+char *find_file(const char *file)
{
FILE *fp = NULL;
char **search_dirs = script_search_dirs;
diff --git a/src/helper/configuration.h b/src/helper/configuration.h
index d1f537d7..e29ef734 100644
--- a/src/helper/configuration.h
+++ b/src/helper/configuration.h
@@ -29,7 +29,7 @@ extern void add_config_command (const char *cfg);
extern void add_script_search_dir (const char *dir);
extern int configuration_output_handler(struct command_context_s *context, const char* line);
extern FILE *open_file_from_path (char *file, char *mode);
-extern char *find_file(char *name);
+extern char *find_file(const char *name);
int add_default_dirs(void);
#endif /* CONFIGURATION_H */