aboutsummaryrefslogtreecommitdiffstats
path: root/src/rtl_test.c
diff options
context:
space:
mode:
authorSteve Markgraf <steve@steve-m.de>2013-11-21 16:33:44 +0100
committerSteve Markgraf <steve@steve-m.de>2013-11-21 16:33:44 +0100
commitf17818f7370e166d367c2f33d2b6fc1e22f48e6b (patch)
treee4ff0366f6588e5949a5a761e4237f07ab5b2e38 /src/rtl_test.c
parent33427f7f316f24925d5b3c2816591bc32d180b08 (diff)
rtl_test: use static instead of global var
Signed-off-by: Steve Markgraf <steve@steve-m.de>
Diffstat (limited to 'src/rtl_test.c')
-rw-r--r--src/rtl_test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rtl_test.c b/src/rtl_test.c
index 4320cf9..8b6fc77 100644
--- a/src/rtl_test.c
+++ b/src/rtl_test.c
@@ -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];