++total_vars;
}
- int count[total_vars];
- memset(count, 0, sizeof(count));
+ const size_t countlen = total_vars * sizeof(int);
+ int *count = alloca(countlen);
+ memset(count, 0, countlen);
for splay_each(config_t, conf, &config) {
int var_type = 0;
splay_empty_tree(&config);
}
-#ifdef HAVE_MINGW
+#ifdef HAVE_WINDOWS
typedef int uid_t;
static uid_t getuid(void) {
}
}
}
-#endif // HAVE_MINGW
+#endif // HAVE_WINDOWS
static char *read_node_name(void) {
if(access(tinc_conf, R_OK) == 0) {