Browse Source

Autoformat after merging pull request

bel 10 năm trước cách đây
mục cha
commit
f3bf12b0f5
2 tập tin đã thay đổi với 6 bổ sung5 xóa
  1. 3 3
      include/civetweb.h
  2. 3 2
      src/civetweb.c

+ 3 - 3
include/civetweb.h

@@ -747,11 +747,11 @@ CIVETWEB_API unsigned mg_check_feature(unsigned feature);
 
    Return:
     0: context is running normally
-	1: context is shutting down
-	2: context has stopped
+    1: context is shutting down
+    2: context has stopped
    -1: Invalid context
  */
-CIVETWEB_API int mg_is_ctx_stopped(const struct mg_context* ctx);
+CIVETWEB_API int mg_is_ctx_stopped(const struct mg_context *ctx);
 
 #ifdef __cplusplus
 }

+ 3 - 2
src/civetweb.c

@@ -10787,9 +10787,10 @@ struct mg_context *mg_start(const struct mg_callbacks *callbacks,
 	return ctx;
 }
 
-int mg_is_ctx_stopped(const struct mg_context* ctx)
+int mg_is_ctx_stopped(const struct mg_context *ctx)
 {
-	if (!ctx) return -1;
+	if (!ctx)
+		return -1;
 
 	return ctx->stop_flag;
 }