rtl_test: use static instead of global var

Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
Steve Markgraf 2013-11-21 16:33:44 +01:00
parent 33427f7f31
commit f17818f737
1 changed files with 1 additions and 2 deletions

View File

@ -102,12 +102,11 @@ static void sighandler(int signum)
}
#endif
uint8_t bcnt, uninit = 1;
static void rtlsdr_callback(unsigned char *buf, uint32_t len, void *ctx)
{
uint32_t i, lost = 0;
int64_t ns;
static uint8_t bcnt, uninit = 1;
if (uninit) {
bcnt = buf[0];