Fix installation on CentOS 7
Change-Id: I673e89d567a23376655320ce9edce0fefc0f2d8c
diff --git a/tests/basic_test.c b/tests/basic_test.c
index 8872c48..56d9905 100644
--- a/tests/basic_test.c
+++ b/tests/basic_test.c
@@ -78,8 +78,7 @@
void test_writing() {
char *tmp = tempnam(NULL, NULL);
long size = 0;
-
- printf("%s\n", acutest_argv0_);
+ int i;
char *rocksdbfn = malloc(strlen(tmp)+strlen(".rocksdb"));
strcpy (rocksdbfn, tmp);
@@ -96,7 +95,7 @@
fclose(h);
read_vocab(cdb, vocabfn);
inc_collocator(cdb, 0, 1, 4); size++;
- for (int i=0; i < 1000; i++) {
+ for (i=0; i < 1000; i++) {
inc_collocator(cdb, 0, 1, i % 5); size++;
inc_collocator(cdb, 0, 1, -i % 5); size++;
inc_collocator(cdb, 1, 0, i % 5); size++;