浏览代码

Format code after merge

bel 9 年之前
父节点
当前提交
5e547ff2e5
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      include/civetweb.h
  2. 1 1
      src/civetweb.c

+ 1 - 1
include/civetweb.h

@@ -210,7 +210,7 @@ struct mg_callbacks {
 	   Parameters:
 	   Parameters:
 	     ctx: context handle
 	     ctx: context handle
 	     thread_type: a value of 1 indicates a worker thread. */
 	     thread_type: a value of 1 indicates a worker thread. */
-	void(*init_thread)(const struct mg_context *ctx, int thread_type);
+	void (*init_thread)(const struct mg_context *ctx, int thread_type);
 
 
 	/* Called when civetweb context is deleted.
 	/* Called when civetweb context is deleted.
 	   Parameters:
 	   Parameters:

+ 1 - 1
src/civetweb.c

@@ -2256,7 +2256,7 @@ send_static_cache_header(struct mg_connection *conn)
 	 * Reason: see https://www.mnot.net/blog/2007/05/15/expires_max-age */
 	 * Reason: see https://www.mnot.net/blog/2007/05/15/expires_max-age */
 	/* See also https://www.mnot.net/cache_docs/ */
 	/* See also https://www.mnot.net/cache_docs/ */
 	return mg_printf(conn, "Cache-Control: max-age=%u\r\n", (unsigned)max_age);
 	return mg_printf(conn, "Cache-Control: max-age=%u\r\n", (unsigned)max_age);
-#else /* NO_CACHING */
+#else  /* NO_CACHING */
 	return send_no_cache_header(conn);
 	return send_no_cache_header(conn);
 #endif /* !NO_CACHING */
 #endif /* !NO_CACHING */
 }
 }