gdb/
* remote-mips.c (pmon_download): Fix ignored return value GCC warning.
This commit is contained in:
parent
30d2355aab
commit
2e424e08c1
|
@ -1,3 +1,7 @@
|
||||||
|
2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
|
* remote-mips.c (pmon_download): Fix ignored return value GCC warning.
|
||||||
|
|
||||||
2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
|
2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
Code cleanup.
|
Code cleanup.
|
||||||
|
|
|
@ -3343,7 +3343,13 @@ static void
|
||||||
pmon_download (char *buffer, int length)
|
pmon_download (char *buffer, int length)
|
||||||
{
|
{
|
||||||
if (tftp_in_use)
|
if (tftp_in_use)
|
||||||
fwrite (buffer, 1, length, tftp_file);
|
{
|
||||||
|
size_t written;
|
||||||
|
|
||||||
|
written = fwrite (buffer, 1, length, tftp_file);
|
||||||
|
if (written < length)
|
||||||
|
perror_with_name (tftp_localname);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
serial_write (udp_in_use ? udp_desc : mips_desc, buffer, length);
|
serial_write (udp_in_use ? udp_desc : mips_desc, buffer, length);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue