* [ob] Make memory-map.c compile again
@ 2006-12-29 9:49 Mark Kettenis
2006-12-29 13:59 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Mark Kettenis @ 2006-12-29 9:49 UTC (permalink / raw)
To: gdb-patches
Someone has been writing too much C++ code.
Committed as obvious,
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* memory-map.c (memory_map_end_element): Move variable
declarations to the begining of the block.
Index: memory-map.c
===================================================================
RCS file: /cvs/src/src/gdb/memory-map.c,v
retrieving revision 1.3
diff -u -p -r1.3 memory-map.c
--- memory-map.c 5 Oct 2006 19:42:31 -0000 1.3
+++ memory-map.c 29 Dec 2006 09:34:07 -0000
@@ -141,10 +141,11 @@ memory_map_end_element (void *data_, con
{
if (strcmp (data->property_name, "blocksize") == 0)
{
+ char *end = NULL;
+
if (!data->character_data)
throw_error (XML_PARSE_ERROR,
_("Empty content of 'property' element"));
- char *end = NULL;
data->currently_parsing->attrib.blocksize
= strtoul (data->character_data, &end, 0);
if (*end != '\0')
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-12-29 13:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-29 9:49 [ob] Make memory-map.c compile again Mark Kettenis
2006-12-29 13:59 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox