mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
1999-01-31 J.T. Conklin <jtc@redbacknetworks.com>
* i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c, sparcl-stub, sparclet-stub.c: Change declaration of putDebugChar to include explicit void return type as per documentation. Fix up occasions where stubs erroneously checked return type.
This commit is contained in:
@ -95,8 +95,8 @@
|
||||
* external low-level support routines
|
||||
*/
|
||||
|
||||
extern putDebugChar(); /* write a single character */
|
||||
extern getDebugChar(); /* read and return a single char */
|
||||
extern void putDebugChar(); /* write a single character */
|
||||
extern int getDebugChar(); /* read and return a single char */
|
||||
|
||||
/************************************************************************/
|
||||
/* BUFMAX defines the maximum number of characters in inbound/outbound buffers*/
|
||||
@ -534,8 +534,7 @@ putpacket(buffer)
|
||||
|
||||
while (ch = buffer[count])
|
||||
{
|
||||
if (! putDebugChar(ch))
|
||||
return;
|
||||
putDebugChar(ch);
|
||||
checksum += ch;
|
||||
count += 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user