From b28d9fc13f951cc3ecb10d38f45daf017c60645d Mon Sep 17 00:00:00 2001 From: Hannes Ellinger Date: Tue, 2 Feb 2016 18:56:49 +0100 Subject: fix issue #147 --- host/libubertooth/src/ubertooth.c | 2 +- host/libubertooth/src/ubertooth.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'host/libubertooth') diff --git a/host/libubertooth/src/ubertooth.c b/host/libubertooth/src/ubertooth.c index 4459ca2..d1a5799 100644 --- a/host/libubertooth/src/ubertooth.c +++ b/host/libubertooth/src/ubertooth.c @@ -1022,7 +1022,7 @@ ubertooth_t* ubertooth_init() return ut; } -uint8_t ubertooth_connect(ubertooth_t* ut, int ubertooth_device) +int ubertooth_connect(ubertooth_t* ut, int ubertooth_device) { int r = libusb_init(NULL); if (r < 0) { diff --git a/host/libubertooth/src/ubertooth.h b/host/libubertooth/src/ubertooth.h index 9577d46..e5166f9 100644 --- a/host/libubertooth/src/ubertooth.h +++ b/host/libubertooth/src/ubertooth.h @@ -75,7 +75,7 @@ typedef struct { void print_version(); void register_cleanup_handler(ubertooth_t* ut); ubertooth_t* ubertooth_init(); -uint8_t ubertooth_connect(ubertooth_t* ut, int ubertooth_device); +int ubertooth_connect(ubertooth_t* ut, int ubertooth_device); ubertooth_t* ubertooth_start(int ubertooth_device); void ubertooth_stop(ubertooth_t* ut); void ubertooth_set_timeout(ubertooth_t* ut, int seconds); -- cgit v1.2.3