aboutsummaryrefslogtreecommitdiff
path: root/gdb/command.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-05-16 03:03:13 +0000
committerAndrew Cagney <cagney@redhat.com>2000-05-16 03:03:13 +0000
commit1ed2a1352d4af2d840b285a741bc02d4584c24f1 (patch)
tree9020ef74aa86fd491e1932344e76a0a6f429769d /gdb/command.c
parentdfb0df6c344642319f4301abb78ac015a0e558f0 (diff)
downloadgdb-1ed2a1352d4af2d840b285a741bc02d4584c24f1.zip
gdb-1ed2a1352d4af2d840b285a741bc02d4584c24f1.tar.gz
gdb-1ed2a1352d4af2d840b285a741bc02d4584c24f1.tar.bz2
Fix signature of add_set_enum_cmd. Change VAR parameter to char**.
Cleanup signature of add_set_cmd. Change VAR parameter to void*.
Diffstat (limited to 'gdb/command.c')
-rw-r--r--gdb/command.c26
1 files changed, 12 insertions, 14 deletions
diff --git a/gdb/command.c b/gdb/command.c
index d753d77..8c35ed4 100644
--- a/gdb/command.c
+++ b/gdb/command.c
@@ -285,13 +285,12 @@ empty_sfunc (args, from_tty, c)
DOC is the documentation string. */
struct cmd_list_element *
-add_set_cmd (name, class, var_type, var, doc, list)
- char *name;
- enum command_class class;
- var_types var_type;
- char *var;
- char *doc;
- struct cmd_list_element **list;
+add_set_cmd (char *name,
+ enum command_class class,
+ var_types var_type,
+ void *var,
+ char *doc,
+ struct cmd_list_element **list)
{
struct cmd_list_element *c
= add_cmd (name, class, NO_FUNCTION, doc, list);
@@ -314,13 +313,12 @@ add_set_cmd (name, class, var_type, var, doc, list)
DOC is the documentation string. */
struct cmd_list_element *
-add_set_enum_cmd (name, class, enumlist, var, doc, list)
- char *name;
- enum command_class class;
- char *enumlist[];
- char *var;
- char *doc;
- struct cmd_list_element **list;
+add_set_enum_cmd (char *name,
+ enum command_class class,
+ char *enumlist[],
+ char **var,
+ char *doc,
+ struct cmd_list_element **list)
{
struct cmd_list_element *c
= add_set_cmd (name, class, var_enum, var, doc, list);