From acce2bcccb67252c2ff1bafc14e5417cf2aaf0f0 Mon Sep 17 00:00:00 2001 From: oharboe Date: Mon, 14 Jul 2008 06:34:23 +0000 Subject: Charles Hardin This evaluates the file at the correct level for the interpreter and the sets and all the globals are then done as expected. added a const to find_file function to avoid typecasting git-svn-id: svn://svn.berlios.de/openocd/trunk@806 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/helper/configuration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/helper/configuration.c') 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; -- cgit v1.2.3