From c09ba40a48ac23cecb1db1d39d9685eb93964067 Mon Sep 17 00:00:00 2001 From: Marko Mikulicic <mkm@cesanta.com> Date: Thu, 12 Nov 2015 18:18:51 +0300 Subject: [PATCH] Cleanup make format target PUBLISHED_FROM=5f856af633ca9a10161769caac130fc6452f137f --- mongoose.c | 5 +++-- mongoose.h | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/mongoose.c b/mongoose.c index 7f3c72ab3..da86d4680 100644 --- a/mongoose.c +++ b/mongoose.c @@ -1131,7 +1131,7 @@ void MD5_Final(unsigned char digest[16], MD5_CTX *ctx) { memcpy(digest, ctx->buf, 16); memset((char *) ctx, 0, sizeof(*ctx)); } -#endif /* CS_ENABLE_NATIVE_MD5 */ +#endif /* CS_ENABLE_NATIVE_MD5 */ /* * Stringify binary data. Output buffer size must be 2 * size_of_input + 1 @@ -1443,7 +1443,8 @@ void cs_sha1_init(cs_sha1_ctx *context) { context->count[0] = context->count[1] = 0; } -void cs_sha1_update(cs_sha1_ctx *context, const unsigned char *data, uint32_t len) { +void cs_sha1_update(cs_sha1_ctx *context, const unsigned char *data, + uint32_t len) { uint32_t i, j; j = context->count[0]; diff --git a/mongoose.h b/mongoose.h index cbab9e092..16524dd09 100644 --- a/mongoose.h +++ b/mongoose.h @@ -139,7 +139,7 @@ #define __func__ __FILE__ ":" STR(__LINE__) #endif #define snprintf _snprintf -#define fileno _fileno +#define fileno _fileno #define vsnprintf _vsnprintf #define sleep(x) Sleep((x) *1000) #define to64(x) _atoi64(x) @@ -275,10 +275,10 @@ int64_t strtoll(const char *str, char **endptr, int base); #ifdef CS_ENABLE_DEBUG void cs_dbg_printf(const char *fmt, ...); -#define __DBG(x) \ - do { \ +#define __DBG(x) \ + do { \ fprintf(stderr, "%-20s ", __func__); \ - cs_dbg_printf x; \ + cs_dbg_printf x; \ } while (0) #define DBG __DBG -- GitLab