mirror of
https://github.com/cesanta/mongoose.git
synced 2026-12-04 21:58:22 +00:00
Fix static function prototype
PUBLISHED_FROM=d90d06593ec4531f479053243c72601ee27a3141
This commit is contained in:
1 parent
6400536282
commit
3e6cbbde04
1 file changed
+2
-2
+2
-2
@@ -3696,7 +3696,7 @@ struct ws_mask_ctx {
|
|||||||
uint32_t mask;
|
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
|
* The spec requires WS client to generate hard to
|
||||||
* guess mask keys. From RFC6455, Section 5.3:
|
* 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
|
* mongoose use cases and thus can be disabled, e.g. when porting to a platform
|
||||||
* that lacks random().
|
* that lacks random().
|
||||||
*/
|
*/
|
||||||
#if MG_DISABLE_WS_RANDOM_MASK
|
#ifdef MG_DISABLE_WS_RANDOM_MASK
|
||||||
return 0xefbeadde; /* generated with a random number generator, I swear */
|
return 0xefbeadde; /* generated with a random number generator, I swear */
|
||||||
#else
|
#else
|
||||||
if (sizeof(long) >= 4) {
|
if (sizeof(long) >= 4) {
|
||||||
|
|||||||
Reference in new issue
Block a user