* source.c (source_full_path_of): Constify parameter filename.
* defs.h (source_full_path_of): Update declaration accordingly.
This commit is contained in:
parent
e15780428b
commit
24f818742e
3 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
2009-02-17 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
The following patch helps getting rid of a warning inside solib-som.c.
|
||||
|
||||
* source.c (source_full_path_of): Constify parameter filename.
|
||||
* defs.h (source_full_path_of): Update declaration accordingly.
|
||||
|
||||
2009-03-12 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* ada-lang.c (ada_evaluate_subexp): Merge case BINOP_REM and
|
||||
|
|
|
@ -613,7 +613,7 @@ extern void print_address (CORE_ADDR, struct ui_file *);
|
|||
|
||||
extern int openp (const char *, int, const char *, int, int, char **);
|
||||
|
||||
extern int source_full_path_of (char *, char **);
|
||||
extern int source_full_path_of (const char *, char **);
|
||||
|
||||
extern void mod_path (char *, char **);
|
||||
|
||||
|
|
|
@ -822,7 +822,7 @@ done:
|
|||
|
||||
Else, this functions returns 0, and FULL_PATHNAME is set to NULL. */
|
||||
int
|
||||
source_full_path_of (char *filename, char **full_pathname)
|
||||
source_full_path_of (const char *filename, char **full_pathname)
|
||||
{
|
||||
int fd;
|
||||
|
||||
|
|
Loading…
Reference in a new issue