From b0804b836ef473112a3cf7c5391cd47180be1beb Mon Sep 17 00:00:00 2001 From: aeb Date: Wed, 27 Jun 2001 12:14:20 +0000 Subject: [PATCH] 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 --- NEWS | 1 + src/errors.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index d659e80..9b33344 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,5 @@ - add sendiso and dumpiso tools with man files +- fix wrong error mapping on local transactions in raw1394_errcode_to_errno(). Version 0.9: 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)];