Changeset 217 for branches/branch-1.2/zoo-kernel/zoo_loader.c
- Timestamp:
- May 31, 2011, 3:30:49 AM (13 years ago)
- Location:
- branches/branch-1.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1.2
-
branches/branch-1.2/zoo-kernel/zoo_loader.c
r99 r217 26 26 #define MALLOC_CHECK 0 27 27 28 #ifdef WIN32 29 #include "windows.h" 30 #endif 28 31 /** 29 32 * Specific includes … … 45 48 } 46 49 47 xmlXPathObjectPtr extractFromDoc(xmlDocPtr,c har*);50 xmlXPathObjectPtr extractFromDoc(xmlDocPtr,const char*); 48 51 int runRequest(map*); 49 52 … … 64 67 /* ************************************************************************* */ 65 68 66 #ifndef STRTOK_R67 char *68 strtok_r (char *s1, const char *s2, char **lasts)69 {70 char *ret;71 72 if (s1 == NULL)73 s1 = *lasts;74 while (*s1 && strchr(s2, *s1))75 ++s1;76 if (*s1 == '\0')77 return NULL;78 ret = s1;79 while (*s1 && !strchr(s2, *s1))80 ++s1;81 if (*s1)82 *s1++ = '\0';83 *lasts = s1;84 return ret;85 }86 87 #endif88 69 89 70 #define TRUE 1 … … 192 173 addToMap(tmpMap,"language",tval); 193 174 194 c har* requests[3];175 const char* requests[3]; 195 176 requests[0]="GetCapabilities"; 196 177 requests[1]="DescribeProcess"; … … 206 187 #endif 207 188 if(req!=NULL && req->nodeNr==1){ 208 t1->value= requests[j];189 t1->value=strdup(requests[j]); 209 190 j=2; 210 191 }
Note: See TracChangeset
for help on using the changeset viewer.