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
3e6cbbde
Commit
3e6cbbde
authored
Oct 05, 2015
by
Claudiu
Committed by
Marko Mikulicic
Oct 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix static function prototype
PUBLISHED_FROM=d90d06593ec4531f479053243c72601ee27a3141
parent
64005362
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mongoose.c
mongoose.c
+2
-2
No files found.
mongoose.c
View file @
3e6cbbde
...
...
@@ -3696,7 +3696,7 @@ struct ws_mask_ctx {
uint32_t
mask
;
};
static
uint32_t
ws_random_mask
()
{
static
uint32_t
ws_random_mask
(
void
)
{
/*
* The spec requires WS client to generate hard to
* guess mask keys. From RFC6455, Section 5.3:
...
...
@@ -3711,7 +3711,7 @@ static uint32_t ws_random_mask() {
* mongoose use cases and thus can be disabled, e.g. when porting to a platform
* that lacks random().
*/
#if MG_DISABLE_WS_RANDOM_MASK
#if
def
MG_DISABLE_WS_RANDOM_MASK
return
0xefbeadde
;
/* generated with a random number generator, I swear */
#else
if
(
sizeof
(
long
)
>=
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