[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdepim/libkcal/libical/src/libicalss
From:       Paul Campbell <paul () taniwha ! com>
Date:       2004-12-11 1:09:08
Message-ID: 20041211010908.AA4781BA98 () office ! kde ! org
[Download RAW message or body]

CVS commit by campbell: 

fix problem compiling C++ code embedded in C code on some compilers 


  M +7 -5      icalclassify.c   1.7


--- kdepim/libkcal/libical/src/libicalss/icalclassify.c  #1.6:1.7
@@ -53,15 +53,16 @@ char* icalclassify_lowercase(const char*
 {
     char* p = 0;
+        char *xnew;
 
     if(str ==0){
         return 0;
     }
-    char* new = icalmemory_strdup(str);
+    xnew = icalmemory_strdup(str);
 
-    for(p = new; *p!=0; p++){
+    for(p = xnew; *p!=0; p++){
         *p = tolower(*p);
     }
 
-    return new;
+    return xnew;
 }
 
@@ -148,6 +149,7 @@ icalproperty* icalclassify_find_attendee
         const char* this_attendee
             = icalclassify_lowercase(icalproperty_get_attendee(p));
+        char* this_upn;
         if ( !this_attendee ) continue;
-        char* this_upn = strchr(this_attendee,':');
+                this_upn = strchr(this_attendee,':');
 
         if(this_upn == 0){


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic