summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2018-05-02 20:45:33 -0600
committerEduardo Chappa <chappa@washington.edu>2018-05-02 20:45:33 -0600
commit7975a951e78041f402d0f4e40b5635c20be1275a (patch)
tree7e140dcefbd8723467c1fd43b1801db68991fde8
parenta252c8d3ee63d466c7ec710286d9a299abe8982c (diff)
downloadalpine-7975a951e78041f402d0f4e40b5635c20be1275a.tar.xz
* Modified module pith/ical.c because it would not build with Visual Studio 2008.
Reported by Ulf-Dietrich Braumann. * Quell some warnings in the compilation of Alpine in Visual Studion 2017.
-rw-r--r--pith/ical.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/pith/ical.c b/pith/ical.c
index 7cf742f5..dff7c71f 100644
--- a/pith/ical.c
+++ b/pith/ical.c
@@ -1135,8 +1135,9 @@ ical_parse_timezone(char **text)
if(s){ /* figure out the token */
int ukn = 0; /* unknown token */
if(!struncmp(s, "BEGIN", 5)){
+ ICAL_S *uk_comp;
s += 6; /* 6 = strlen("BEGIN:") */
- ICAL_S *uk_comp = ical_parse_unknown_comp(&s, 0);
+ uk_comp = ical_parse_unknown_comp(&s, 0);
ical_free_unknown_comp(&uk_comp);
} else if(!struncmp(s, "END", t-s-1)){
s += 4; /* 4 = strlen("END:") */
@@ -1216,8 +1217,9 @@ ical_parse_valarm(char **text)
if(s){ /* figure out the token */
int ukn = 0; /* unknown token */
if(!struncmp(s, "BEGIN", 5)){
+ ICAL_S *uk_comp;
s += 6; /* 6 = strlen("BEGIN:") */
- ICAL_S *uk_comp = ical_parse_unknown_comp(&s, 0);
+ uk_comp = ical_parse_unknown_comp(&s, 0);
ical_free_unknown_comp(&uk_comp);
} else if(!struncmp(s, "END", t-s-1)){
s += 4; /* 4 = strlen("END:") */
@@ -1496,6 +1498,7 @@ ical_parse_weekday_list(void *bywkdyp, char *wklist)
if(wklist == NULL) return bywkdyp;
+ done = 0;
for(t = s = wklist; done == 0; s++){
if(*s != ',' && *s != '\0')
continue;
@@ -2068,6 +2071,7 @@ adjust_date_rrule(struct tm *dtstart, RRULE_S *rrule)
}
if (rrule->prop[RRWkst]){
}
+ return t;
}
void