Add qualifier 'const' to argument args
authorYao Qi <yao@codesourcery.com>
Sun, 5 Jan 2014 11:36:51 +0000 (19:36 +0800)
committerYao Qi <yao@codesourcery.com>
Tue, 7 Jan 2014 03:01:48 +0000 (11:01 +0800)
This patch fixes the following error.

../../../git/gdb/gnu-nat.c: In function 'info_port_rights':
../../../git/gdb/gnu-nat.c:3083:11: error: passing argument 1 of 'parse_to_comma_and_eval' from incompatible pointer type [-Werror]
In file included from ../../../git/gdb/breakpoint.h:23:0,
                 from ../../../git/gdb/inferior.h:37,
                 from ../../../git/gdb/gnu-nat.c:55:
../../../git/gdb/value.h:763:22: note: expected 'const char **' but argument is of type 'char **'

gdb:

2014-01-07  Yao Qi  <yao@codesourcery.com>

* gnu-nat.c (info_port_rights): Add qualifier const to
argument args.

gdb/ChangeLog
gdb/gnu-nat.c

index 236b117e0143ed7ec8fab957de445213eee49110..6117bc9e50ed42f4cbbdbfef08d7926a3861a949 100644 (file)
@@ -1,3 +1,8 @@
+2014-01-07  Yao Qi  <yao@codesourcery.com>
+
+       * gnu-nat.c (info_port_rights): Add qualifier const to
+       argument args.
+
 2014-01-07  Yao Qi  <yao@codesourcery.com>
 
        * gnu-nat.c (trace_me): Use 'void' for empty argument list.
index b52e23b25c1206dc52ff89c2df26cfbc1ad3f2e5..ffab91efe9e2ec8017a00d15822fdefea8b2c60e 100644 (file)
@@ -3070,7 +3070,7 @@ set_noninvasive_cmd (char *args, int from_tty)
 
 \f
 static void
-info_port_rights (char *args, mach_port_type_t only)
+info_port_rights (const char *args, mach_port_type_t only)
 {
   struct inf *inf = active_inf ();
   struct value *vmark = value_mark ();
This page took 0.026336 seconds and 4 git commands to generate.