Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
mongoose
Commits
c09ba40a
Commit
c09ba40a
authored
Nov 12, 2015
by
Marko Mikulicic
Committed by
Sergey Lyubka
Nov 18, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup make format target
PUBLISHED_FROM=5f856af633ca9a10161769caac130fc6452f137f
parent
47d52896
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
mongoose.c
mongoose.c
+3
-2
mongoose.h
mongoose.h
+4
-4
No files found.
mongoose.c
View file @
c09ba40a
...
@@ -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
];
...
...
mongoose.h
View file @
c09ba40a
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment