Fix static function prototype

PUBLISHED_FROM=d90d06593ec4531f479053243c72601ee27a3141
This commit is contained in:
Claudiu 2015-10-05 21:21:58 +01:00 committed by Marko Mikulicic
parent 6400536282
commit 3e6cbbde04

View File

@ -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) {