Commit c09ba40a authored by Marko Mikulicic's avatar Marko Mikulicic Committed by Sergey Lyubka

Cleanup make format target

    PUBLISHED_FROM=5f856af633ca9a10161769caac130fc6452f137f
parent 47d52896
...@@ -1131,7 +1131,7 @@ void MD5_Final(unsigned char digest[16], MD5_CTX *ctx) { ...@@ -1131,7 +1131,7 @@ void MD5_Final(unsigned char digest[16], MD5_CTX *ctx) {
memcpy(digest, ctx->buf, 16); memcpy(digest, ctx->buf, 16);
memset((char *) ctx, 0, sizeof(*ctx)); 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 * 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) { ...@@ -1443,7 +1443,8 @@ void cs_sha1_init(cs_sha1_ctx *context) {
context->count[0] = context->count[1] = 0; 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; uint32_t i, j;
j = context->count[0]; j = context->count[0];
......
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
#define __func__ __FILE__ ":" STR(__LINE__) #define __func__ __FILE__ ":" STR(__LINE__)
#endif #endif
#define snprintf _snprintf #define snprintf _snprintf
#define fileno _fileno #define fileno _fileno
#define vsnprintf _vsnprintf #define vsnprintf _vsnprintf
#define sleep(x) Sleep((x) *1000) #define sleep(x) Sleep((x) *1000)
#define to64(x) _atoi64(x) #define to64(x) _atoi64(x)
...@@ -275,10 +275,10 @@ int64_t strtoll(const char *str, char **endptr, int base); ...@@ -275,10 +275,10 @@ int64_t strtoll(const char *str, char **endptr, int base);
#ifdef CS_ENABLE_DEBUG #ifdef CS_ENABLE_DEBUG
void cs_dbg_printf(const char *fmt, ...); void cs_dbg_printf(const char *fmt, ...);
#define __DBG(x) \ #define __DBG(x) \
do { \ do { \
fprintf(stderr, "%-20s ", __func__); \ fprintf(stderr, "%-20s ", __func__); \
cs_dbg_printf x; \ cs_dbg_printf x; \
} while (0) } while (0)
#define DBG __DBG #define DBG __DBG
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment