From f3bf12b0f5eb8a881827e8f40747cfaef89d3d4a Mon Sep 17 00:00:00 2001 From: bel Date: Sun, 16 Aug 2015 23:56:57 +0200 Subject: [PATCH] Autoformat after merging pull request --- include/civetweb.h | 6 +++--- src/civetweb.c | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/include/civetweb.h b/include/civetweb.h index 4e028567..e46610bd 100644 --- a/include/civetweb.h +++ b/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 } diff --git a/src/civetweb.c b/src/civetweb.c index fdc21f09..ce9ae91e 100755 --- a/src/civetweb.c +++ b/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; }