summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/services.cpp
diff options
context:
space:
mode:
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;