Mark free functions static where applicable

This commit is contained in:
WarmUpTill
2023-04-29 22:56:45 +02:00
committed by WarmUpTill
parent 5967c83b03
commit 443ffb7906
27 changed files with 99 additions and 94 deletions

View File

@@ -18,12 +18,12 @@ const static std::map<MacroActionHttp::Method, std::string> methods = {
"AdvSceneSwitcher.action.http.type.post"},
};
size_t DropCB(void *, size_t size, size_t nmemb, std::string *)
static size_t DropCB(void *, size_t size, size_t nmemb, std::string *)
{
return size * nmemb;
}
size_t WriteCB(void *ptr, size_t size, size_t nmemb, std::string *buffer)
static size_t WriteCB(void *ptr, size_t size, size_t nmemb, std::string *buffer)
{
buffer->append((char *)ptr, nmemb);
return size * nmemb;