* source.c (source_full_path_of): Constify parameter filename.
authorJoel Brobecker <brobecker@gnat.com>
Fri, 13 Mar 2009 02:34:13 +0000 (02:34 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Fri, 13 Mar 2009 02:34:13 +0000 (02:34 +0000)
        * defs.h (source_full_path_of): Update declaration accordingly.

gdb/ChangeLog
gdb/defs.h
gdb/source.c

index 97f1396c87d58bc5cef40843b5c4624fa17f30cf..c6993590ea01c36eb48f641bdbc0d837c0f6acb3 100644 (file)
@@ -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
index 845b3203f4a61f71f72d40ad4e58360c5f7989e3..001db816a6b2d7174584c6b93ed726a79e39d825 100644 (file)
@@ -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 **);
 
index d1562ea1c0ed659f30c63d64ac0f91734664c01b..43df92ff83b8a930cec193430908b8e7fadee3e0 100644 (file)
@@ -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;
 
This page took 0.028792 seconds and 4 git commands to generate.