mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-27 15:01:03 +08:00
Fix static function prototype
PUBLISHED_FROM=d90d06593ec4531f479053243c72601ee27a3141
This commit is contained in:
parent
6400536282
commit
3e6cbbde04
@ -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
|
||||
#ifdef MG_DISABLE_WS_RANDOM_MASK
|
||||
return 0xefbeadde; /* generated with a random number generator, I swear */
|
||||
#else
|
||||
if (sizeof(long) >= 4) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user