aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2010-08-14 18:58:24 +0200
committerClemens Ladisch <clemens@ladisch.de>2012-05-18 13:44:07 +0200
commit9712599ec6173324beec2912fad970f2ee929f4d (patch)
tree1f3e7b2123780bfc16972682cc7e627202bf205a
parent3b11ed1c0c9f823a71f112ba6a13c8e5f4e8f6f5 (diff)
downloadlinux-firewire-utils-9712599ec6173324beec2912fad970f2ee929f4d.tar.gz
firewire-request: set response_received
Do not forget to set the response_received variable. Otherwise, the tool would complain about a timeout error if the response command arrived after the request's ack.
-rw-r--r--src/firewire-request.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/firewire-request.c b/src/firewire-request.c
index 64f75e1..f0adec7 100644
--- a/src/firewire-request.c
+++ b/src/firewire-request.c
@@ -383,11 +383,13 @@ static void do_fcp(void)
struct fw_cdev_event_request2 *request = (void *)buf;
send_response(request->handle, RCODE_COMPLETE);
print_data("response: ", request->data, request->length, false);
+ response_received = true;
#endif
} else if (event->type == FW_CDEV_EVENT_REQUEST) {
struct fw_cdev_event_request *request = (void *)buf;
send_response(request->handle, RCODE_COMPLETE);
print_data("response: ", request->data, request->length, false);
+ response_received = true;
}
}
}