Browse Source

Format code

bel 8 years ago
parent
commit
f11d475a46
2 changed files with 7 additions and 8 deletions
  1. 4 5
      src/timer.inl
  2. 3 3
      test/public_server.c

+ 4 - 5
src/timer.inl

@@ -167,9 +167,9 @@ timer_thread_run(void *thread_func_param)
 		d = timer_getcurrenttime();
 	}
 
-pthread_mutex_lock(&ctx->timers->mutex);
+	pthread_mutex_lock(&ctx->timers->mutex);
 	ctx->timers->timer_count = 0;
-pthread_mutex_unlock(&ctx->timers->mutex);
+	pthread_mutex_unlock(&ctx->timers->mutex);
 }
 
 
@@ -210,12 +210,11 @@ timers_exit(struct mg_context *ctx)
 	if (ctx->timers) {
 		pthread_mutex_lock(&ctx->timers->mutex);
 		ctx->timers->timer_count = 0;
-		/* TODO: Do we really need to unlock the mutex, before 
+		/* TODO: Do we really need to unlock the mutex, before
 		 * destroying it, if it's destroyed by the thread currently
 		 * owning the mutex? */
-		pthread_mutex_unlock(&ctx->timers->mutex); 
+		pthread_mutex_unlock(&ctx->timers->mutex);
 		(void)pthread_mutex_destroy(&ctx->timers->mutex);
 		mg_free(ctx->timers);
 	}
 }
-

+ 3 - 3
test/public_server.c

@@ -3850,9 +3850,9 @@ START_TEST(test_large_file)
 	}
 
 #if defined(_WIN32)
-    //TODO: Check this problem on AppVeyor
-	//ck_assert_int_le(retry_fail_cnt, 2);
-	//ck_assert_int_ge(retry_ok_cnt, 1);
+// TODO: Check this problem on AppVeyor
+// ck_assert_int_le(retry_fail_cnt, 2);
+// ck_assert_int_ge(retry_ok_cnt, 1);
 #else
 	ck_assert_int_eq(retry_fail_cnt, 0);
 	ck_assert_int_eq(retry_ok_cnt, 3);