浏览代码

Eliminate C++ comment and C++ style function declaration.

Kimmo Mustonen 8 年之前
父节点
当前提交
0856f120ee
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/civetweb.c

+ 2 - 2
src/civetweb.c

@@ -1257,7 +1257,7 @@ mg_current_thread_id(void)
 
 
 
 
 static uint64_t
 static uint64_t
-mg_get_current_time_ns()
+mg_get_current_time_ns(void)
 {
 {
 	struct timespec tsnow;
 	struct timespec tsnow;
 	clock_gettime(CLOCK_REALTIME, &tsnow);
 	clock_gettime(CLOCK_REALTIME, &tsnow);
@@ -13595,7 +13595,7 @@ mg_close_connection(struct mg_connection *conn)
 		mg_free(client_ctx);
 		mg_free(client_ctx);
 		(void)pthread_mutex_destroy(&conn->mutex);
 		(void)pthread_mutex_destroy(&conn->mutex);
 		mg_free(conn);
 		mg_free(conn);
-	} else if (conn->ctx->context_type == 0) { // Client
+	} else if (conn->ctx->context_type == 0) { /* Client */
 		mg_free(conn);
 		mg_free(conn);
 	}
 	}
 }
 }