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.
This commit is contained in:
Radoslav Gerganov
2016-08-05 16:53:36 +03:00
parent 2dffba9c47
commit 8ba15ad0b1
2 changed files with 2 additions and 2 deletions

View File

@ -288,7 +288,7 @@ char* u64toa(uint64_t val, t_u64toa* str)
return res;
}
volatile bool do_exit = false;
static volatile bool do_exit = false;
FILE* fd = NULL;
volatile uint32_t byte_count = 0;

View File

@ -117,7 +117,7 @@ static const max2837_ft_t max2837_ft[] = {
{ 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;