The size of the array must be a constant on Windows

This commit is contained in:
Micke Prag 2012-01-18 11:46:06 +01:00
parent 5807bceda8
commit 8d9679bf77

View file

@ -15,6 +15,8 @@ const int SUPPORTED_METHODS =
TELLSTICK_BELL | TELLSTICK_BELL |
TELLSTICK_DIM; TELLSTICK_DIM;
const int DATA_LENGTH = 20;
void print_usage( char *name ) { void print_usage( char *name ) {
printf("Usage: %s [ options ]\n", name); printf("Usage: %s [ options ]\n", name);
printf("\n"); printf("\n");
@ -123,7 +125,6 @@ int list_devices() {
i++; i++;
} }
int DATA_LENGTH = 20;
char protocol[DATA_LENGTH], model[DATA_LENGTH]; char protocol[DATA_LENGTH], model[DATA_LENGTH];
int sensorId = 0, dataTypes = 0; int sensorId = 0, dataTypes = 0;