Fix wrong error mapping in raw1394_error_to_errno() on local transactions.

git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@70 53a565d1-3bb7-0310-b661-cf11e63c67ab
This commit is contained in:
aeb 2001-06-27 12:14:20 +00:00
parent c4b0299754
commit b0804b836e
2 changed files with 3 additions and 1 deletions

1
NEWS
View File

@ -1,4 +1,5 @@
- add sendiso and dumpiso tools with man files - add sendiso and dumpiso tools with man files
- fix wrong error mapping on local transactions in raw1394_errcode_to_errno().
Version 0.9: Version 0.9:

View File

@ -61,7 +61,8 @@ int raw1394_errcode_to_errno(raw1394_errcode_t errcode)
}; };
if (!raw1394_internal_err(errcode)) { if (!raw1394_internal_err(errcode)) {
if (raw1394_get_ack(errcode) == L1394_ACK_PENDING) if (raw1394_get_ack(errcode) == 0x10
|| raw1394_get_ack(errcode) == L1394_ACK_PENDING)
return rcode2errno[raw1394_get_rcode(errcode)]; return rcode2errno[raw1394_get_rcode(errcode)];
else else
return ack2errno[raw1394_get_ack(errcode)]; return ack2errno[raw1394_get_ack(errcode)];