This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH][MSP430] Fix return code error in simulator implemenations of write.c.


Hello,

In the MSP430 simulator implementation of write() in write.c the wrong
local is used as the return code (it's returning the result of the
last invocation of write_chunk() (variable c) rather than the
aggregate write size (variable rv). This causes issues for users of
write().

Patch included as attachment to avoid whitespace issues.

I do do not have the ability to apply patch this myself.

Regards,
-Martin.

Attachment: rc.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]