diff options
| author | 2001-06-27 12:14:20 +0000 | |
|---|---|---|
| committer | 2001-06-27 12:14:20 +0000 | |
| commit | b0804b836ef473112a3cf7c5391cd47180be1beb (patch) | |
| tree | c77b5a5cf8e7a9d589f9c0865443306fa18a8aa6 /src/errors.c | |
| parent | debian: Let postinst continue even if input is /dev/null. (diff) | |
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
Diffstat (limited to 'src/errors.c')
| -rw-r--r-- | src/errors.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/errors.c b/src/errors.c index 8f5b5a4..08ce425 100644 --- a/src/errors.c +++ b/src/errors.c @@ -61,7 +61,8 @@ int raw1394_errcode_to_errno(raw1394_errcode_t 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)]; else return ack2errno[raw1394_get_ack(errcode)]; |
