summaryrefslogtreecommitdiff
path: root/protocols/Twitter/src/twitter.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-08-14 17:49:08 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-08-14 17:49:08 +0000
commitd30ebf7e3b54d8a5887c0f6c2382987f8ad80420 (patch)
treeaee070e4136352c91fe6946c0f2b607edc369cd5 /protocols/Twitter/src/twitter.cpp
parent3761434e0c1f631a78398226e53ca4a25431c2cd (diff)
built-in base64 removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@5688 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Twitter/src/twitter.cpp')
-rw-r--r--protocols/Twitter/src/twitter.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/protocols/Twitter/src/twitter.cpp b/protocols/Twitter/src/twitter.cpp
index 78f1582e29..81e55a2cad 100644
--- a/protocols/Twitter/src/twitter.cpp
+++ b/protocols/Twitter/src/twitter.cpp
@@ -445,7 +445,7 @@ string twitter::urlencode(const string &c)
{
string escaped;
- int max = c.length();
+ size_t max = c.length();
for(int i=0; i<max; i++)
{
if ( (48 <= c[i] && c[i] <= 57) ||//0-9
@@ -516,11 +516,10 @@ static char *month_names[] = { "Jan","Feb","Mar","Apr","May","Jun",
int parse_month(const char *m)
{
- for(size_t i=0; i<12; i++)
- {
+ for(int i=0; i<12; i++)
if(strcmp(month_names[i],m) == 0)
return i;
- }
+
return -1;
}