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
|
From 8ba15ad0b1a132a8126a4e094af244aa14cf5d60 Mon Sep 17 00:00:00 2001
From: Radoslav Gerganov <rgerganov@vmware.com>
Date: Fri, 5 Aug 2016 16:53:36 +0300
Subject: [PATCH 089/111] Make the 'do_exit' flag static
Both libhackrf and hackrf_transfer are using boolean flag named
"do_exit" which is not static. This is problematic because the flag is
used for different things. This patch fixes the problem by making the
flag static in both places.
---
host/hackrf-tools/src/hackrf_transfer.c | 2 +-
host/libhackrf/src/hackrf.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
--- a/host/hackrf-tools/src/hackrf_transfer.c
+++ b/host/hackrf-tools/src/hackrf_transfer.c
@@ -287,7 +287,7 @@
return res;
}
-volatile bool do_exit = false;
+static volatile bool do_exit = false;
FILE* fd = NULL;
volatile uint32_t byte_count = 0;
--- a/host/libhackrf/src/hackrf.c
+++ b/host/libhackrf/src/hackrf.c
@@ -117,7 +117,7 @@
{ 0 }
};
-volatile bool do_exit = false;
+static volatile bool do_exit = false;
static const uint16_t hackrf_usb_vid = 0x1d50;
static const uint16_t hackrf_jawbreaker_usb_pid = 0x604b;
|