apps/examples/lis3dsh_reader: Convert a forbidden c99 construct to c89 style.

This commit is contained in:
Gregory Nutt 2017-12-16 07:32:37 -06:00
parent 2e8f41ef3b
commit 6134eedb71

View File

@ -65,10 +65,11 @@ int lis3dsh_reader_main(int argc, FAR char *argv[])
int16_t y;
int16_t z;
} acc_data;
int i;
acc = fopen("/dev/acc0", "r");
for (uint8_t i = 0; 1; i++)
for (i = 0; 1; i++)
{
fread( &acc_data, 6, 1, acc );
printf("x: %4d y: %4d z: %4d \r",