Przeglądaj źródła

Format code and remove accidentally inserted character

bel2125 4 lat temu
rodzic
commit
5d8856ccb4
2 zmienionych plików z 9 dodań i 9 usunięć
  1. 7 7
      include/civetweb.h
  2. 2 2
      src/civetweb.c

+ 7 - 7
include/civetweb.h

@@ -329,14 +329,14 @@ struct mg_callbacks {
 	*/
 	*/
 	void (*connection_close)(const struct mg_connection *);
 	void (*connection_close)(const struct mg_connection *);
 
 
-       /* Called after civetweb has closed a connection.  The per-context mutex is
-          locked when this is invoked.
+	/* Called after civetweb has closed a connection.  The per-context mutex is
+	   locked when this is invoked.
 
 
-	   Connection specific data:
-	   If memory has been allocated for the connection specific user data
-	   (mg_request_info->conn_data, mg_get_user_connection_data),
-	   this is the last chance to free it.
-	*/
+	Connection specific data:
+	If memory has been allocated for the connection specific user data
+	(mg_request_info->conn_data, mg_get_user_connection_data),
+	this is the last chance to free it.
+ */
 	void (*connection_closed)(const struct mg_connection *);
 	void (*connection_closed)(const struct mg_connection *);
 
 
 
 

+ 2 - 2
src/civetweb.c

@@ -317,7 +317,7 @@ __cyg_profile_func_exit(void *this_fn, void *call_site)
 #endif
 #endif
 
 
 
 
-/* Some ANSI #includes are not available on Windows CE */
+/* Some ANSI #includes are not available on Windows CE and Zephyr */
 #if !defined(_WIN32_WCE) && !defined(__ZEPHYR__)
 #if !defined(_WIN32_WCE) && !defined(__ZEPHYR__)
 #include <errno.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <fcntl.h>
@@ -20620,7 +20620,7 @@ mg_get_system_info(char *buffer, int buflen)
 		const char *bd = BUILD_DATE;
 		const char *bd = BUILD_DATE;
 #else
 #else
 #if defined(GCC_DIAGNOSTIC)
 #if defined(GCC_DIAGNOSTIC)
-#if GCC_VERSION >= 40900c
+#if GCC_VERSION >= 40900
 #pragma GCC diagnostic push
 #pragma GCC diagnostic push
 		/* Disable idiotic compiler warning -Wdate-time, appeared in gcc5. This
 		/* Disable idiotic compiler warning -Wdate-time, appeared in gcc5. This
 		 * does not work in some versions. If "BUILD_DATE" is defined to some
 		 * does not work in some versions. If "BUILD_DATE" is defined to some