mirror of
				https://github.com/rtlsdrblog/rtl-sdr-blog.git
				synced 2025-10-31 00:48:08 +01:00 
			
		
		
		
	rtl_test: use static instead of global var
Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
		| @@ -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]; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user