summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorGravatar aeb 2001-01-19 01:11:48 +0000
committerGravatar aeb 2001-01-19 01:11:48 +0000
commite6015ce5e9be81881102e33ed3139fc11bb233cc (patch)
treedf9981bade81a4784f69f3f0da427a61ed4c2ee2 /src/main.c
parentFix misplaced device file in Debian installation. (diff)
First implementation of new error reporting API.
git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@49 53a565d1-3bb7-0310-b661-cf11e63c67ab
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 744543c..20745c5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -76,7 +76,7 @@ static unsigned int init_rawdevice(struct raw1394_handle *h)
}
-struct raw1394_handle *raw1394_get_handle(void)
+struct raw1394_handle *raw1394_new_handle(void)
{
struct raw1394_handle *handle;
@@ -99,6 +99,7 @@ struct raw1394_handle *raw1394_get_handle(void)
return NULL;
}
+ handle->err = 0;
handle->bus_reset_handler = bus_reset_default;
handle->tag_handler = tag_handler_default;
memset(handle->iso_handler, 0, sizeof(handle->iso_handler));