From 37c67c00ad13d8b1790735523400f26e43bf607a Mon Sep 17 00:00:00 2001 From: Learath Date: Wed, 13 Feb 2019 14:59:46 +0100 Subject: [PATCH] Style --- src/base/system.c | 7 ++++--- src/engine/shared/config_variables.h | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/base/system.c b/src/base/system.c index ff6c632b0..cf9ad169e 100644 --- a/src/base/system.c +++ b/src/base/system.c @@ -3041,7 +3041,7 @@ unsigned str_quickhash(const char *str) return hash; } -static const char *str_token_next(const char *str, const char *delim, size_t *length) +static const char *str_token_next(const char *str, const char *delim, int *length) { str += strspn(str, delim); if(!*str) @@ -3054,9 +3054,10 @@ static const char *str_token_next(const char *str, const char *delim, size_t *le int str_in_list(const char *list, const char *delim, const char *needle) { const char *tok = list; - size_t len = 0, notfound = 1; + int len = 0, notfound = 1; - while(notfound && (tok = str_token_next(tok, delim, &len))){ + while(notfound && (tok = str_token_next(tok, delim, &len))) + { notfound = str_comp_num(tok, needle, len); tok = tok + len; } diff --git a/src/engine/shared/config_variables.h b/src/engine/shared/config_variables.h index 547816a13..738b776cd 100644 --- a/src/engine/shared/config_variables.h +++ b/src/engine/shared/config_variables.h @@ -359,7 +359,7 @@ MACRO_CONFIG_INT(SvSoloServer, sv_solo_server, 0, 0, 1, CFGFLAG_SERVER|CFGFLAG_G MACRO_CONFIG_STR(SvClientSuggestion, sv_client_suggestion, 128, "Get DDNet client from DDNet.tw to use all features on DDNet!", CFGFLAG_SERVER, "Broadcast to display to players without DDNet client") MACRO_CONFIG_STR(SvClientSuggestionOld, sv_client_suggestion_old, 128, "Your DDNet client is old, update it on DDNet.tw!", CFGFLAG_SERVER, "Broadcast to display to players with an old version of DDNet client") MACRO_CONFIG_STR(SvClientSuggestionBot, sv_client_suggestion_bot, 128, "Your client has bots and can be remotely controlled!\nPlease use another client like DDNet client from DDNet.tw", CFGFLAG_SERVER, "Broadcast to display to players with a known botting client") -MACRO_CONFIG_STR(SvBannedVersions, sv_banned_versions, 128, "", CFGFLAG_SERVER, "Comma seperated list of banned clients to be kicked on join") +MACRO_CONFIG_STR(SvBannedVersions, sv_banned_versions, 128, "", CFGFLAG_SERVER, "Comma separated list of banned clients to be kicked on join") // netlimit MACRO_CONFIG_INT(SvNetlimit, sv_netlimit, 0, 0, 10000, CFGFLAG_SERVER, "Netlimit: Maximum amount of traffic a client is allowed to use (in kb/s)")