+2010-05-04 Mark Kettenis <kettenis@gnu.org>
+
+ * remote.c (register_remote_support_xml)
+ (remote_query_supported_append, remote_query_supported): Add cast
+ to NULL used as sentinel.
+ * tracepoint.c (tvariables_info_1): Likewise.
+ * utils.c (add_internal_problem_command): Likewise.
+
2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* dwarf2loc.c (read_pieced_value, write_pieced_value,
{
#if defined(HAVE_LIBEXPAT)
if (remote_support_xml == NULL)
- remote_support_xml = concat ("xmlRegisters=", xml, NULL);
+ remote_support_xml = concat ("xmlRegisters=", xml, (char *) NULL);
else
{
char *copy = xstrdup (remote_support_xml + 13);
while ((p = strtok (NULL, ",")) != NULL);
xfree (copy);
- p = concat (remote_support_xml, ",", xml, NULL);
+ p = concat (remote_support_xml, ",", xml, (char *) NULL);
xfree (remote_support_xml);
remote_support_xml = p;
}
{
if (msg)
{
- char *p = concat (msg, ";", append, NULL);
+ char *p = concat (msg, ";", append, (char *) NULL);
xfree (msg);
return p;
}
if (q)
{
- char *p = concat ("qSupported:", q, NULL);
+ char *p = concat ("qSupported:", q, (char *) NULL);
xfree (q);
putpkt (p);
xfree (p);
back_to2 = make_cleanup_ui_out_tuple_begin_end (uiout, "variable");
- name = concat ("$", tsv->name, NULL);
+ name = concat ("$", tsv->name, (char *) NULL);
make_cleanup (xfree, name);
ui_out_field_string (uiout, "name", name);
ui_out_field_string (uiout, "initial", plongest (tsv->initial_value));
filename = tilde_expand (filename);
if (!IS_ABSOLUTE_PATH(filename))
{
- temp = concat (current_directory, "/", filename, (char *)NULL);
+ temp = concat (current_directory, "/", filename, (char *) NULL);
xfree (filename);
filename = temp;
}
add_prefix_cmd ((char*) problem->name,
class_maintenance, set_internal_problem_cmd, set_doc,
set_cmd_list,
- concat ("maintenance set ", problem->name, " ", NULL),
+ concat ("maintenance set ", problem->name, " ",
+ (char *) NULL),
0/*allow-unknown*/, &maintenance_set_cmdlist);
add_prefix_cmd ((char*) problem->name,
class_maintenance, show_internal_problem_cmd, show_doc,
show_cmd_list,
- concat ("maintenance show ", problem->name, " ", NULL),
+ concat ("maintenance show ", problem->name, " ",
+ (char *) NULL),
0/*allow-unknown*/, &maintenance_show_cmdlist);
set_doc = xstrprintf (_("\
directory separator, avoid doubling it. */
real_path = gdb_realpath (dir_name);
if (IS_DIR_SEPARATOR (real_path[strlen (real_path) - 1]))
- result = concat (real_path, base_name, (char *)NULL);
+ result = concat (real_path, base_name, (char *) NULL);
else
- result = concat (real_path, SLASH_STRING, base_name, (char *)NULL);
+ result = concat (real_path, SLASH_STRING, base_name, (char *) NULL);
xfree (real_path);
return result;