diff options
| author | 2003-07-22 14:54:19 +0000 | |
|---|---|---|
| committer | 2003-07-22 14:54:19 +0000 | |
| commit | ec749d4a021095ff680a927d4a996b051468bc6a (patch) | |
| tree | ee8edab15a99bbcce8868da4d600609396209202 /src/fcp.c | |
| parent | Patch from Dan Maas to add raw1394_iso_recv_flush() call to API, using the (diff) | |
Patch from Stephen Tiedemann to allow reentrancy in raw1394's usage of
raw1394_request's.
git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@128 53a565d1-3bb7-0310-b661-cf11e63c67ab
Diffstat (limited to 'src/fcp.c')
| -rw-r--r-- | src/fcp.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -22,17 +22,17 @@ static int do_fcp_listen(struct raw1394_handle *handle, int startstop) struct sync_cb_data sd = { 0, 0 }; struct raw1394_reqhandle rh = { (req_callback_t)_raw1394_sync_cb, &sd }; int err; - struct raw1394_request *req = &handle->req; + struct raw1394_request req; - CLEAR_REQ(req); - req->type = RAW1394_REQ_FCP_LISTEN; - req->generation = handle->generation; - req->misc = startstop; - req->tag = ptr2int(&rh); - req->recvb = ptr2int(handle->buffer); - req->length = 512; + CLEAR_REQ(&req); + req.type = RAW1394_REQ_FCP_LISTEN; + req.generation = handle->generation; + req.misc = startstop; + req.tag = ptr2int(&rh); + req.recvb = ptr2int(handle->buffer); + req.length = 512; - err = write(handle->fd, req, sizeof(*req)); + err = write(handle->fd, &req, sizeof(req)); while (!sd.done) { if (err < 0) return err; err = raw1394_loop_iterate(handle); |
