Browse Source

Format code

bel 8 years ago
parent
commit
337c1167a7
2 changed files with 8 additions and 8 deletions
  1. 7 7
      src/civetweb.c
  2. 1 1
      test/public_server.c

+ 7 - 7
src/civetweb.c

@@ -3666,10 +3666,10 @@ mg_stat(const struct mg_connection *conn,
 
 		/* Quick fix (for 1.9.x): */
 		/* mg_stat must fill all fields, also for files in memory */
-        struct mg_file tmp_file = STRUCT_FILE_INITIALIZER;
+		struct mg_file tmp_file = STRUCT_FILE_INITIALIZER;
 		open_file_in_memory(conn, path, &tmp_file, MG_FOPEN_MODE_NONE);
-        filep->size = tmp_file.stat.size;
-        filep->location = 2;
+		filep->size = tmp_file.stat.size;
+		filep->location = 2;
 		/* TODO: for 1.10: restructure how files in memory are handled */
 
 		filep->last_modified = time(NULL); /* xxxxxxxx */
@@ -4190,11 +4190,11 @@ mg_stat(const struct mg_connection *conn,
 
 		/* Quick fix (for 1.9.x): */
 		/* mg_stat must fill all fields, also for files in memory */
-        struct mg_file tmp_file = STRUCT_FILE_INITIALIZER;
+		struct mg_file tmp_file = STRUCT_FILE_INITIALIZER;
 		open_file_in_memory(conn, path, &tmp_file, MG_FOPEN_MODE_NONE);
-        filep->size = tmp_file.stat.size;
-        filep->last_modified = time(NULL);
-        filep->location = 2;
+		filep->size = tmp_file.stat.size;
+		filep->last_modified = time(NULL);
+		filep->location = 2;
 		/* TODO: for 1.10: restructure how files in memory are handled */
 
 		return 1;

+ 1 - 1
test/public_server.c

@@ -3820,7 +3820,7 @@ START_TEST(test_file_in_memory)
 	free(file_in_mem_data);
 	file_in_mem_data = NULL;
 #else
-	/* This test is not meaningful, if NO_FILES is set */	
+	/* This test is not meaningful, if NO_FILES is set */
 	ck_assert_uint_eq(mg_check_feature(1), 0);
 #endif
 }