From 8ba18ebcdb2dfdcee482ece28361075caad91c28 Mon Sep 17 00:00:00 2001 From: Malcolm Robb Date: Mon, 8 Apr 2013 18:25:11 +0100 Subject: [PATCH] Type Conversion required when using --file --- dump1090.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dump1090.c b/dump1090.c index c962816..323de38 100644 --- a/dump1090.c +++ b/dump1090.c @@ -445,7 +445,7 @@ void readDataFromFile(void) { } toread = MODES_ASYNC_BUF_SIZE; - p = Modes.data; + p = (unsigned char *) Modes.data; while(toread) { nread = read(Modes.fd, p, toread); if (nread <= 0) {