File: 0014-one-more-bugfix-session.patch

package info (click to toggle)
airspyhf 1.6.8-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,036 kB
  • sloc: ansic: 3,915; sh: 18; xml: 18; makefile: 13
file content (43 lines) | stat: -rw-r--r-- 1,406 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From dfb2c30d68653b31e3a51f6ae97891c099b8477c Mon Sep 17 00:00:00 2001
From: AlexandreRouma <alexandre.rouma@gmail.com>
Date: Thu, 1 Sep 2022 20:35:41 +0200
Subject: [PATCH 14/46] one more bugfix session

---
 libairspyhf/src/airspyhf.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libairspyhf/src/airspyhf.c b/libairspyhf/src/airspyhf.c
index 4e0f692..b95b4fd 100644
--- a/libairspyhf/src/airspyhf.c
+++ b/libairspyhf/src/airspyhf.c
@@ -758,7 +758,7 @@ static void airspyhf_open_device_fd(airspyhf_device_t* device,
 	int fd) {
 	int result;
 
-	result libusb_wrap_sys_device(device->usb_context, (intptr_t)fd, &device->usb_device);
+	result = libusb_wrap_sys_device(device->usb_context, (intptr_t)fd, &device->usb_device);
 	if (result != 0 || device->usb_device == NULL)
 	{
 		*ret = AIRSPYHF_ERROR;
@@ -773,7 +773,7 @@ static void airspyhf_open_device_fd(airspyhf_device_t* device,
 		return;
 	}
 	
-	libusb_claim_interface(device->usb_device, 0);
+	result = libusb_claim_interface(device->usb_device, 0);
 	if (result != 0)
 	{
 		libusb_close(device->usb_device);
@@ -781,7 +781,7 @@ static void airspyhf_open_device_fd(airspyhf_device_t* device,
 		return;
 	}
 
-	libusb_set_interface_alt_setting(device->usb_device, 0, 1);
+	result = libusb_set_interface_alt_setting(device->usb_device, 0, 1);
 	if (result != 0)
 	{
 		libusb_close(device->usb_device);
-- 
2.47.3