Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
c09ba40a
Commit
c09ba40a
authored
9 years ago
by
Marko Mikulicic
Committed by
Sergey Lyubka
9 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup make format target
PUBLISHED_FROM=5f856af633ca9a10161769caac130fc6452f137f
parent
47d52896
Changes
2
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) {
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
];
...
...
This diff is collapsed.
Click to expand it.
mongoose.h
View file @
c09ba40a
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
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