ソースを参照

Unit test: Fix for Visual Studio 2010/2012 compilers

bel2125 5 年 前
コミット
f8cd7c5244
2 ファイル変更3 行追加3 行削除
  1. 3 1
      unittest/private.c
  2. 0 2
      unittest/public_server.c

+ 3 - 1
unittest/private.c

@@ -326,6 +326,8 @@ END_TEST
 
 START_TEST(test_remove_dot_segments)
 {
+	int i;
+
 	struct {
 		const char *input;
 		const char *expected_output;
@@ -359,7 +361,7 @@ START_TEST(test_remove_dot_segments)
 
 	mark_point();
 
-	for (int i = 0; (tests[i].input != NULL); i++) {
+	for (i = 0; (tests[i].input != NULL); i++) {
 		char inout[256];
 		strcpy(inout, tests[i].input);
 		remove_dot_segments(inout);

+ 0 - 2
unittest/public_server.c

@@ -151,8 +151,6 @@ START_TEST(test_the_test_environment)
 	char wd[300];
 	char buf[500];
 	FILE *f;
-	struct stat st;
-	int ret;
 	const char *ssl_cert = locate_ssl_cert();
 
 	memset(wd, 0, sizeof(wd));