Type Conversion required when using --file

This commit is contained in:
Malcolm Robb 2013-04-08 18:25:11 +01:00
parent 192cb80c08
commit 8ba18ebcdb

View file

@ -445,7 +445,7 @@ void readDataFromFile(void) {
} }
toread = MODES_ASYNC_BUF_SIZE; toread = MODES_ASYNC_BUF_SIZE;
p = Modes.data; p = (unsigned char *) Modes.data;
while(toread) { while(toread) {
nread = read(Modes.fd, p, toread); nread = read(Modes.fd, p, toread);
if (nread <= 0) { if (nread <= 0) {