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
dd49c079
Commit
dd49c079
authored
Mar 08, 2013
by
Filipp Kovalev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A little bit more warnings suppresed
parent
4b539d4b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
mongoose.c
mongoose.c
+11
-2
No files found.
mongoose.c
View file @
dd49c079
...
@@ -67,6 +67,7 @@
...
@@ -67,6 +67,7 @@
#include <stdio.h>
#include <stdio.h>
#if defined(_WIN32) && !defined(__SYMBIAN32__) // Windows specific
#if defined(_WIN32) && !defined(__SYMBIAN32__) // Windows specific
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0400 // To make it link in VS2005
#define _WIN32_WINNT 0x0400 // To make it link in VS2005
#include <windows.h>
#include <windows.h>
...
@@ -127,8 +128,12 @@ typedef long off_t;
...
@@ -127,8 +128,12 @@ typedef long off_t;
#define mg_sleep(x) Sleep(x)
#define mg_sleep(x) Sleep(x)
#define pipe(x) _pipe(x, MG_BUF_LEN, _O_BINARY)
#define pipe(x) _pipe(x, MG_BUF_LEN, _O_BINARY)
#ifndef popen
#define popen(x, y) _popen(x, y)
#define popen(x, y) _popen(x, y)
#endif
#ifndef pclose
#define pclose(x) _pclose(x)
#define pclose(x) _pclose(x)
#endif
#define close(x) _close(x)
#define close(x) _close(x)
#define dlsym(x,y) GetProcAddress((HINSTANCE) (x), (y))
#define dlsym(x,y) GetProcAddress((HINSTANCE) (x), (y))
#define RTLD_LAZY 0
#define RTLD_LAZY 0
...
@@ -191,7 +196,9 @@ struct pollfd {
...
@@ -191,7 +196,9 @@ struct pollfd {
// Mark required libraries
// Mark required libraries
#ifdef _MSC_VER
#pragma comment(lib, "Ws2_32.lib")
#pragma comment(lib, "Ws2_32.lib")
#endif
#else // UNIX specific
#else // UNIX specific
#include <sys/wait.h>
#include <sys/wait.h>
...
@@ -2142,6 +2149,7 @@ static void MD5Update(MD5_CTX *ctx, unsigned char const *buf, unsigned len) {
...
@@ -2142,6 +2149,7 @@ static void MD5Update(MD5_CTX *ctx, unsigned char const *buf, unsigned len) {
static
void
MD5Final
(
unsigned
char
digest
[
16
],
MD5_CTX
*
ctx
)
{
static
void
MD5Final
(
unsigned
char
digest
[
16
],
MD5_CTX
*
ctx
)
{
unsigned
count
;
unsigned
count
;
unsigned
char
*
p
;
unsigned
char
*
p
;
uint32_t
*
a
;
count
=
(
ctx
->
bits
[
0
]
>>
3
)
&
0x3F
;
count
=
(
ctx
->
bits
[
0
]
>>
3
)
&
0x3F
;
...
@@ -2158,8 +2166,9 @@ static void MD5Final(unsigned char digest[16], MD5_CTX *ctx) {
...
@@ -2158,8 +2166,9 @@ static void MD5Final(unsigned char digest[16], MD5_CTX *ctx) {
}
}
byteReverse
(
ctx
->
in
,
14
);
byteReverse
(
ctx
->
in
,
14
);
((
uint32_t
*
)
ctx
->
in
)[
14
]
=
ctx
->
bits
[
0
];
a
=
(
uint32_t
*
)
ctx
->
in
;
((
uint32_t
*
)
ctx
->
in
)[
15
]
=
ctx
->
bits
[
1
];
a
[
14
]
=
ctx
->
bits
[
0
];
a
[
15
]
=
ctx
->
bits
[
1
];
MD5Transform
(
ctx
->
buf
,
(
uint32_t
*
)
ctx
->
in
);
MD5Transform
(
ctx
->
buf
,
(
uint32_t
*
)
ctx
->
in
);
byteReverse
((
unsigned
char
*
)
ctx
->
buf
,
4
);
byteReverse
((
unsigned
char
*
)
ctx
->
buf
,
4
);
...
...
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