improve constness of open_file_from_path

__archive__
Zachary T Welch 2009-11-13 14:21:56 -08:00
parent ccf59123b7
commit 0a9daddc2e
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ char *find_file(const char *file)
return NULL;
}
FILE *open_file_from_path (char *file, char *mode)
FILE *open_file_from_path(const char *file, const char *mode)
{
if (mode[0]!='r')
{

View File

@ -36,7 +36,7 @@ void add_script_search_dir(const char *dir);
int configuration_output_handler(struct command_context *cmd_ctx,
const char *line);
FILE *open_file_from_path(char *file, char *mode);
FILE *open_file_from_path(const char *file, const char *mode);
char *find_file(const char *name);