From: Yao Qi Date: Sun, 5 Jan 2014 11:36:51 +0000 (+0800) Subject: Add qualifier 'const' to argument args X-Git-Tag: hjl/linux/release/2.24.51.0.3~1^2~21^2~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0cc6f43dae73e5805f470fc823c3e503b8cdbffe;p=thirdparty%2Fbinutils-gdb.git Add qualifier 'const' to argument args 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 * gnu-nat.c (info_port_rights): Add qualifier const to argument args. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 236b117e014..6117bc9e50e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-01-07 Yao Qi + + * gnu-nat.c (info_port_rights): Add qualifier const to + argument args. + 2014-01-07 Yao Qi * gnu-nat.c (trace_me): Use 'void' for empty argument list. diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index b52e23b25c1..ffab91efe9e 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -3070,7 +3070,7 @@ set_noninvasive_cmd (char *args, int from_tty) 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 ();