summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/services.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-02-28 23:31:19 +0300
committeraunsane <aunsane@gmail.com>2018-02-28 23:34:28 +0300
commit98be8c0a0db8d4866535028e21a5d958c3d893ab (patch)
treef4de203d8fa1af0023621ede8316c7641499510c /plugins/CloudFile/src/services.cpp
parent107bbe53ce937334d8a47ca96e632f5a1f965725 (diff)
CloudFile: cannot see cloud accounts after setup (fixed #1169)
Diffstat (limited to 'plugins/CloudFile/src/services.cpp')
-rw-r--r--plugins/CloudFile/src/services.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/plugins/CloudFile/src/services.cpp b/plugins/CloudFile/src/services.cpp
index 039c1ce19f..2921296434 100644
--- a/plugins/CloudFile/src/services.cpp
+++ b/plugins/CloudFile/src/services.cpp
@@ -7,11 +7,6 @@ static int CompareServices(const CCloudService *p1, const CCloudService *p2)
LIST<CCloudService> Services(10, CompareServices);
-static INT_PTR GetServiceCount(WPARAM, LPARAM)
-{
- return Services.getCount();
-}
-
static INT_PTR GetService(WPARAM wParam, LPARAM lParam)
{
ptrA accountName(mir_strdup((char*)wParam));
@@ -88,7 +83,7 @@ INT_PTR Upload(WPARAM wParam, LPARAM lParam)
CFUPLOADRESULT *result = (CFUPLOADRESULT*)lParam;
const char **links = ftp->GetSharedLinks(result->linkCount);
result->links = (char**)mir_calloc(sizeof(char*) * result->linkCount);
- for (int i = 0; i < result->linkCount; i++)
+ for (size_t i = 0; i < result->linkCount; i++)
result->links[i] = mir_strdup(links[i]);
result->description = mir_wstrdup(ftp->GetDescription());
}
@@ -99,7 +94,7 @@ INT_PTR Upload(WPARAM wParam, LPARAM lParam)
return res;
}
-void InitServices()
+void InitializeServices()
{
PROTOCOLDESCRIPTOR pd = { sizeof(pd) };
pd.type = PROTOTYPE_PROTOCOL;