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:
parent
c4b0299754
commit
b0804b836e
1
NEWS
1
NEWS
|
@ -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:
|
||||||
|
|
||||||
|
|
|
@ -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)];
|
||||||
|
|
Reference in New Issue