aboutsummaryrefslogtreecommitdiffstats
path: root/src/rtl_adsb.c
diff options
context:
space:
mode:
authorSteve Markgraf <steve@steve-m.de>2014-02-04 19:53:24 +0100
committerSteve Markgraf <steve@steve-m.de>2014-02-04 19:53:24 +0100
commit50743b1ccba6242bb77421d5c15afcd4f9a0adb7 (patch)
treea4e0cfa37639c8c9660baf95e04f3c0fac028cfe /src/rtl_adsb.c
parent0a90c7d4177a61b2272098e7c89553726401f836 (diff)
remove unused variables, type fixes
Signed-off-by: Steve Markgraf <steve@steve-m.de>
Diffstat (limited to 'src/rtl_adsb.c')
-rw-r--r--src/rtl_adsb.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/rtl_adsb.c b/src/rtl_adsb.c
index bb0c8d2..7b10306 100644
--- a/src/rtl_adsb.c
+++ b/src/rtl_adsb.c
@@ -306,8 +306,7 @@ void manchester(uint16_t *buf, int len)
void messages(uint16_t *buf, int len)
{
- int i, i2, start, preamble_found;
- int data_i, index, shift, frame_len;
+ int i, data_i, index, shift, frame_len;
// todo, allow wrap across buffers
for (i=0; i<len; i++) {
if (buf[i] > 1) {
@@ -365,8 +364,8 @@ int main(int argc, char **argv)
struct sigaction sigact;
#endif
char *filename = NULL;
- int n_read, r, opt;
- int i, gain = AUTO_GAIN; /* tenths of a dB */
+ int r, opt;
+ int gain = AUTO_GAIN; /* tenths of a dB */
int dev_index = 0;
int dev_given = 0;
int ppm_error = 0;