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
2108ec5a
Commit
2108ec5a
authored
Jul 27, 2014
by
Pavel Pimenov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix style for pointer
parent
f41c9a2a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
mongoose.c
mongoose.c
+6
-6
No files found.
mongoose.c
View file @
2108ec5a
...
@@ -2545,7 +2545,7 @@ static void SHA1Transform(uint32_t state[5], const unsigned char buffer[64]) {
...
@@ -2545,7 +2545,7 @@ static void SHA1Transform(uint32_t state[5], const unsigned char buffer[64]) {
(
void
)
a
;
(
void
)
b
;
(
void
)
c
;
(
void
)
d
;
(
void
)
e
;
(
void
)
a
;
(
void
)
b
;
(
void
)
c
;
(
void
)
d
;
(
void
)
e
;
}
}
static
void
SHA1Init
(
SHA1_CTX
*
context
)
{
static
void
SHA1Init
(
SHA1_CTX
*
context
)
{
context
->
state
[
0
]
=
0x67452301
;
context
->
state
[
0
]
=
0x67452301
;
context
->
state
[
1
]
=
0xEFCDAB89
;
context
->
state
[
1
]
=
0xEFCDAB89
;
context
->
state
[
2
]
=
0x98BADCFE
;
context
->
state
[
2
]
=
0x98BADCFE
;
...
@@ -2554,7 +2554,7 @@ static void SHA1Init(SHA1_CTX* context) {
...
@@ -2554,7 +2554,7 @@ static void SHA1Init(SHA1_CTX* context) {
context
->
count
[
0
]
=
context
->
count
[
1
]
=
0
;
context
->
count
[
0
]
=
context
->
count
[
1
]
=
0
;
}
}
static
void
SHA1Update
(
SHA1_CTX
*
context
,
const
unsigned
char
*
data
,
static
void
SHA1Update
(
SHA1_CTX
*
context
,
const
unsigned
char
*
data
,
uint32_t
len
)
{
uint32_t
len
)
{
uint32_t
i
,
j
;
uint32_t
i
,
j
;
...
@@ -2575,7 +2575,7 @@ static void SHA1Update(SHA1_CTX* context, const unsigned char* data,
...
@@ -2575,7 +2575,7 @@ static void SHA1Update(SHA1_CTX* context, const unsigned char* data,
memcpy
(
&
context
->
buffer
[
j
],
&
data
[
i
],
len
-
i
);
memcpy
(
&
context
->
buffer
[
j
],
&
data
[
i
],
len
-
i
);
}
}
static
void
SHA1Final
(
unsigned
char
digest
[
20
],
SHA1_CTX
*
context
)
{
static
void
SHA1Final
(
unsigned
char
digest
[
20
],
SHA1_CTX
*
context
)
{
unsigned
i
;
unsigned
i
;
unsigned
char
finalcount
[
8
],
c
;
unsigned
char
finalcount
[
8
],
c
;
...
@@ -2691,7 +2691,7 @@ static int deliver_websocket_frame(struct connection *conn) {
...
@@ -2691,7 +2691,7 @@ static int deliver_websocket_frame(struct connection *conn) {
return
buffered
;
return
buffered
;
}
}
size_t
mg_websocket_write
(
struct
mg_connection
*
conn
,
int
opcode
,
size_t
mg_websocket_write
(
struct
mg_connection
*
conn
,
int
opcode
,
const
char
*
data
,
size_t
data_len
)
{
const
char
*
data
,
size_t
data_len
)
{
unsigned
char
mem
[
4192
],
*
copy
=
mem
;
unsigned
char
mem
[
4192
],
*
copy
=
mem
;
size_t
copy_len
=
0
;
size_t
copy_len
=
0
;
...
@@ -2741,7 +2741,7 @@ size_t mg_websocket_write(struct mg_connection* conn, int opcode,
...
@@ -2741,7 +2741,7 @@ size_t mg_websocket_write(struct mg_connection* conn, int opcode,
return
MG_CONN_2_CONN
(
conn
)
->
ns_conn
->
send_iobuf
.
len
;
return
MG_CONN_2_CONN
(
conn
)
->
ns_conn
->
send_iobuf
.
len
;
}
}
size_t
mg_websocket_printf
(
struct
mg_connection
*
conn
,
int
opcode
,
size_t
mg_websocket_printf
(
struct
mg_connection
*
conn
,
int
opcode
,
const
char
*
fmt
,
...)
{
const
char
*
fmt
,
...)
{
char
mem
[
4192
],
*
buf
=
mem
;
char
mem
[
4192
],
*
buf
=
mem
;
va_list
ap
;
va_list
ap
;
...
@@ -4143,7 +4143,7 @@ static void proxify_connection(struct connection *conn) {
...
@@ -4143,7 +4143,7 @@ static void proxify_connection(struct connection *conn) {
}
}
#ifndef MONGOOSE_NO_FILESYSTEM
#ifndef MONGOOSE_NO_FILESYSTEM
void
mg_send_file_internal
(
struct
mg_connection
*
c
,
const
char
*
file_name
,
file_stat_t
*
st
,
int
exists
)
{
void
mg_send_file_internal
(
struct
mg_connection
*
c
,
const
char
*
file_name
,
file_stat_t
*
st
,
int
exists
)
{
struct
connection
*
conn
=
MG_CONN_2_CONN
(
c
);
struct
connection
*
conn
=
MG_CONN_2_CONN
(
c
);
char
path
[
MAX_PATH_SIZE
];
char
path
[
MAX_PATH_SIZE
];
const
int
is_directory
=
S_ISDIR
(
st
->
st_mode
);
const
int
is_directory
=
S_ISDIR
(
st
->
st_mode
);
...
...
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